/* ==========================================================
   Moon Wok — modern site styles
   Fonts: DM Serif Display (headings) + Outfit (body)
   ========================================================== */

:root {
  --ink: #fffdf3;
  --ink-soft: #fff5c7;
  --ink-card: #ffffff;
  --cream: #342719;
  --cream-dim: #75634d;
  --gold: #806400;
  --gold-bright: #d9a441;
  --red: #e0ad2f;
  --red-deep: #ca941d;
  --line: rgba(92, 62, 27, 0.14);
  --radius: 18px;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Outfit", -apple-system, "Segoe UI", sans-serif;
  --container: 1160px;
  --shadow: 0 20px 50px rgba(126, 105, 20, 0.13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-padding-top: 110px; }
/* Smooth scrolling only for user-initiated navigation — a plain
   `html { scroll-behavior: smooth }` breaks the initial scroll when
   the page is opened with a #hash in the URL. */
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--ink);
  color: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--cream); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }
h1 em, h2 em { font-style: italic; color: var(--gold-bright); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: scale(0.97); }

.btn-solid { background: var(--red); color: var(--cream); }
.btn-solid:hover { background: var(--red-deep); color: var(--cream); }

.btn-ghost { border: 1px solid var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 253, 243, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255, 253, 243, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--red);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.35rem;
}
.brand-text {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a:not(.btn) {
  color: var(--cream-dim);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}
.nav-links a:not(.btn):hover,
.nav-links a.active { color: var(--gold); }
.btn-nav { padding: 0.6rem 1.4rem; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translateY(0); }
  to   { transform: scale(1.12) translateY(-14px); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(27, 20, 12, 0.86) 12%, rgba(27, 20, 12, 0.58) 50%, rgba(27, 20, 12, 0.24) 100%);
}
.hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, rgba(27, 20, 12, 0.42));
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 84px;
  color: #fff;
  text-align: center;
}
.hero .eyebrow {
  color: #fff;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.2rem);
  margin: 0 auto 1.4rem;
  max-width: 14ch;
}
.hero h1 em {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  max-width: 46ch;
  margin: 0 auto 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.hero .btn-solid { background: #8f5f10; color: #fff; }
.hero .btn-solid:hover { background: #684408; color: #fff; }
.hero .btn-ghost {
  color: #fff;
  background: rgba(0, 0, 0, 0.16);
  border-color: rgba(255, 255, 255, 0.65);
}
.hero .btn-ghost:hover { color: #fff; border-color: #fff; }
.hero-hours {
  margin-top: 2.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
}

/* ---------- Info strip ---------- */
.info-strip { border-block: 1px solid var(--line); background: var(--ink-soft); }
.info-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 24px;
}
.info-item { display: flex; flex-direction: column; gap: 0.2rem; }
.info-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.info-value { font-size: 0.98rem; color: var(--cream); }

/* ---------- Sections ---------- */
.section { padding: 7rem 0; }
.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-cta { margin-top: 3.5rem; text-align: center; }

/* ---------- Dish cards ---------- */
.dish-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.dish-card {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.dish-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(217, 164, 65, 0.55);
}
.dish-img { aspect-ratio: 4 / 3; overflow: hidden; }
.dish-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.dish-card:hover .dish-img img { transform: scale(1.06); }
.dish-body { padding: 1.3rem 1.4rem 1.5rem; }
.dish-title-row { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.5rem; }
.dish-body h3 { font-size: 1.3rem; }
.dish-body p { font-size: 0.92rem; color: var(--cream-dim); }
.spicy { font-size: 0.85em; }

/* ---------- About ---------- */
.about { background: var(--ink-soft); border-block: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.about-badge {
  position: absolute;
  right: -18px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--red);
  color: var(--cream);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow);
}
.badge-num { font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.badge-text { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; }
.about-copy h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 1.4rem; }
.about-copy p { color: var(--cream-dim); margin-bottom: 1.2rem; max-width: 52ch; }
.about-actions { margin-top: 1.6rem; }

/* ---------- Menu preview (category cards) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
  color: var(--cream);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.cat-card:hover {
  transform: translateY(-5px);
  border-color: var(--red);
  background: #fff6cd;
  color: var(--cream);
}
.cat-num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
}
.cat-name { font-family: var(--serif); font-size: 1.4rem; }
.cat-hint { font-size: 0.85rem; color: var(--cream-dim); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.gallery-grid figure {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-grid figure:hover img { transform: scale(1.05); }

/* ---------- Visit ---------- */
.visit { background: var(--ink-soft); border-top: 1px solid var(--line); }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.visit-info h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 2.2rem; }
.visit-list { list-style: none; display: grid; gap: 1.4rem; }
.visit-list li { display: flex; flex-direction: column; gap: 0.15rem; }
.visit-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.visit-list a, .visit-list span:not(.visit-label) { font-size: 1.08rem; color: var(--cream); }
.visit-list a:hover { color: var(--gold); }
.delivery-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}
.delivery-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  color: var(--cream);
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.delivery-links a:hover { transform: translateY(-2px); border-color: var(--gold-bright); }
.delivery-links img { width: 28px; height: 28px; object-fit: contain; }
.menu-delivery-links { margin-top: 1.4rem; }
.visit-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--radius);
  filter: sepia(0.12) saturate(0.9) contrast(1.02);
  box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 4rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand .brand-mark { margin-bottom: 0.9rem; }
.footer-brand .brand-text { font-size: 1.6rem; display: block; margin-bottom: 0.6rem; }
.footer-brand p { color: var(--cream-dim); font-size: 0.95rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-nav a { color: var(--cream-dim); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; gap: 0.7rem; color: var(--cream-dim); font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

/* ---------- Menu page ---------- */
.menu-hero {
  padding: 11rem 0 4rem;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(240, 193, 66, 0.34), transparent 65%),
    radial-gradient(700px 380px at 10% 0%, rgba(255, 226, 112, 0.4), transparent 60%);
}
.menu-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); margin-bottom: 1.2rem; }
.menu-hero-sub { color: var(--cream-dim); max-width: 58ch; font-size: 1.08rem; }

.menu-nav {
  position: sticky;
  top: 84px;
  z-index: 90;
  background: rgba(255, 253, 243, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
}
.menu-nav-track {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-block: 0.8rem;
  scrollbar-width: none;
}
.menu-nav-track::-webkit-scrollbar { display: none; }
.menu-nav a {
  flex: 0 0 auto;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cream-dim);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.menu-nav a:hover { color: var(--gold); }
.menu-nav a.active {
  color: var(--gold);
  border-color: rgba(217, 164, 65, 0.5);
  background: rgba(217, 164, 65, 0.14);
}

.menu-body { padding-bottom: 6rem; }
.menu-section { padding-top: 4.5rem; }
.menu-section-head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.menu-section-num {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
}
.menu-section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.menu-section-note { width: 100%; color: var(--cream-dim); font-size: 0.95rem; font-style: italic; }

.menu-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 3rem;
}

.menu-item {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.85rem 0.6rem;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.menu-item:hover { background: rgba(217, 164, 65, 0.1); }
.mi-info { min-width: 0; }
.mi-info h3 { font-size: 1.12rem; font-family: var(--sans); font-weight: 500; }
.mi-info p { font-size: 0.88rem; color: var(--cream-dim); margin-top: 0.15rem; }
.mi-count { font-size: 0.85rem; color: var(--cream-dim); font-weight: 300; }
.mi-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(92, 62, 27, 0.24);
  transform: translateY(-4px);
  min-width: 24px;
}
.mi-price {
  white-space: nowrap;
  font-weight: 500;
  color: var(--gold);
  font-size: 0.98rem;
}

.entree-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.price-tier {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.tier-protein { font-weight: 600; letter-spacing: 0.04em; }
.tier-prices { color: var(--gold); font-size: 0.95rem; }

.menu-cta {
  margin-top: 6rem;
  text-align: center;
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
}
.menu-cta h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 0.6rem; }
.menu-cta p { color: var(--cream-dim); margin-bottom: 1.8rem; }
.menu-cta .hero-actions { justify-content: center; }

/* ---------- Ordering modal ---------- */
.order-trigger { cursor: pointer; font: inherit; }
.btn-solid.order-trigger { border: 1px solid transparent; }
.order-modal {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  color: var(--cream);
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(52, 39, 25, 0.28);
}
.order-modal::backdrop {
  background: rgba(52, 39, 25, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.order-modal-inner { position: relative; padding: 2.4rem; }
.order-modal h2 { font-size: clamp(2rem, 5vw, 2.7rem); margin-bottom: 0.6rem; }
.order-modal-copy { color: var(--cream-dim); margin-bottom: 1.8rem; }
.order-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--cream);
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.order-options { display: grid; gap: 0.8rem; }
.order-option {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 82px;
  padding: 1rem 1.2rem;
  color: var(--cream);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.order-option:hover {
  color: var(--cream);
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  box-shadow: 0 10px 24px rgba(126, 105, 20, 0.12);
}
.order-option img { width: 48px; height: 48px; object-fit: contain; }
.order-option > span:last-child { display: flex; flex-direction: column; }
.order-option strong { font-size: 1.05rem; font-weight: 600; }
.order-option small { color: var(--cream-dim); font-size: 0.86rem; }
.phone-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  color: var(--cream);
  background: var(--red);
  border-radius: 13px;
  font-size: 1.45rem;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .dish-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .visit-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-media { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 4.5rem 0; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 84px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(255, 253, 243, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 24px 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: 0.9rem 0; font-size: 1.1rem; }
  .nav-links .btn-nav { margin-top: 0.8rem; display: inline-block; }

  .info-strip-grid { grid-template-columns: 1fr 1fr; padding-block: 1.6rem; }
  .dish-grid, .cat-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .menu-items { grid-template-columns: 1fr; }
  .entree-pricing { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-badge { right: 12px; }
  .menu-nav { top: 84px; }
  .visit-map iframe { height: 320px; }
  .order-modal-inner { padding: 2rem 1.2rem 1.2rem; }
}
