/* ==========================================================================
   Moon Wok — modern restaurant stylesheet (v2)
   Display: Fraunces · Body: Inter · No frameworks
   ========================================================================== */

:root {
  --red:        #8a1a12;   /* deep lacquer red */
  --red-bright: #c0271d;   /* accent / buttons */
  --red-dark:   #6d130c;
  --gold:       #c8a24a;
  --gold-soft:  #dcc182;
  --ink:        #1e1815;   /* warm near-black */
  --ink-2:      #2a221d;
  --cream:      #f7f1e6;
  --cream-2:    #efe6d5;
  --paper:      #ffffff;
  --text:       #2c2521;
  --muted:      #8a7d71;
  --muted-light:#b8a68f;
  --line:       #e7dcc9;
  --line-dark:  rgba(200,162,74,.22);
  --shadow:     0 18px 50px -20px rgba(60,30,10,.35);
  --shadow-sm:  0 6px 20px -8px rgba(60,30,10,.25);
  --radius:     16px;
  --radius-sm:  10px;
  --wrap:       1160px;
  --nav-h:      76px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: clamp(16px, 1.6vw, 17px);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-bright); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

.wrap { width: min(100% - 2.6rem, var(--wrap)); margin-inline: auto; }
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }

/* Kicker / eyebrow with gold flanking rules */
.kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  color: var(--gold); font-family: var(--font-body); font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; font-size: .72rem; margin: 0 0 1rem;
}
.kicker::before, .kicker::after {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6;
}
.kicker.left::before { display: none; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head .kicker { justify-content: center; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.section-head p { color: var(--muted); margin: .5rem 0 0; }

/* ---------- Dark section variant ---------- */
.section-dark {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(200,162,74,.10), transparent 60%),
    var(--ink);
  color: #e9e0d3;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head p { color: var(--muted-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.7rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  cursor: pointer; border: 1.5px solid transparent; transition: all .22s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--red-bright); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); color: var(--ink); transform: translateY(-2px); }
.btn-outline { border-color: var(--red-bright); color: var(--red-bright); background: transparent; }
.btn-outline:hover { background: var(--red-bright); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
  background: rgba(247,241,230,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; color: var(--ink); letter-spacing: -.01em; }
.brand img { height: 44px; width: auto; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a:not(.btn) {
  color: var(--text); font-weight: 500; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  position: relative; padding: .35rem 0;
}
.nav-links > li > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold); transition: right .25s ease;
}
.nav-links > li > a:not(.btn):hover, .nav-links > li > a.active { color: var(--red-bright); }
.nav-links > li > a:not(.btn):hover::after, .nav-links > li > a.active::after { right: 0; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; z-index: 101; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; border-radius: 2px; }

/* Transparent header over hero on landing page */
body.landing .site-header { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
body.landing .site-header .brand { color: #fff; }
body.landing .site-header .nav-links > li > a:not(.btn) { color: rgba(255,255,255,.9); }
body.landing .site-header .nav-toggle span { background: #fff; }
body.landing .site-header.is-scrolled {
  background: rgba(247,241,230,.95); backdrop-filter: blur(10px); border-bottom-color: var(--line); box-shadow: var(--shadow-sm);
}
body.landing .site-header.is-scrolled .brand { color: var(--ink); }
body.landing .site-header.is-scrolled .nav-links > li > a:not(.btn) { color: var(--text); }
body.landing .site-header.is-scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff;
  position: relative; padding: var(--nav-h) 0 2rem; overflow: hidden;
  background: #1a1512 center / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,15,12,.55) 0%, rgba(20,15,12,.35) 35%, rgba(20,15,12,.75) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero .kicker { color: var(--gold-soft); justify-content: center; }
.hero h1 { font-size: clamp(3.2rem, 10vw, 6.5rem); font-weight: 600; margin: 0 0 .1em; text-shadow: 0 4px 40px rgba(0,0,0,.4); }
.hero .tag { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 3vw, 1.7rem); color: #f3e9d8; margin: 0 0 2rem; font-weight: 400; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 1;
  color: rgba(255,255,255,.7); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .4rem; animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue span { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,6px); } }

/* ---------- Info strip ---------- */
.info-strip { background: var(--ink); color: #e9e0d3; padding: 1.1rem 0; border-top: 1px solid var(--line-dark); }
.info-strip .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; justify-content: center; align-items: center; }
.info-strip a, .info-strip span { color: #e9e0d3; display: inline-flex; align-items: center; gap: .55rem; font-size: .92rem; }
.info-strip a:hover { color: var(--gold); }
.info-strip svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.info-strip strong { color: #fff; font-weight: 600; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-grid h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.about-grid p { color: var(--muted); margin: 0 0 1.1rem; }
.section-dark .about-grid p { color: #c9bba9; }
.about-grid .actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.framed { position: relative; }
.framed img { border-radius: var(--radius); box-shadow: var(--shadow); position: relative; z-index: 1; }
.framed::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--gold);
  border-radius: var(--radius); z-index: 0;
}

/* ---------- Menu preview (dark) ---------- */
.menu-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.menu-card {
  display: flex; flex-direction: column; gap: .5rem; text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid rgba(200,162,74,.22); border-radius: var(--radius);
  padding: 1.9rem 1.7rem; color: #e9e0d3; transition: transform .22s ease, border-color .22s ease, background .22s ease;
  position: relative; overflow: hidden;
}
.menu-card:hover { transform: translateY(-5px); border-color: var(--gold); background: rgba(200,162,74,.07); color: #fff; }
.menu-card .ico { width: 46px; height: 46px; color: var(--gold); margin-bottom: .35rem; }
.menu-card .ico svg { width: 100%; height: 100%; stroke-width: 1.5; }
.menu-card h3 { font-size: 1.3rem; margin: 0; color: #fff; }
.menu-card span { color: var(--muted-light); font-size: .9rem; }
.menu-card .arrow { margin-top: auto; padding-top: .8rem; color: var(--gold); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .4rem; transition: gap .2s ease; }
.menu-card:hover .arrow { gap: .75rem; }
.center-cta { text-align: center; margin-top: 3rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-grid figure {
  margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  aspect-ratio: 3 / 4;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem 1rem .9rem; color: #fff; font-family: var(--font-display);
  font-size: 1.02rem; background: linear-gradient(transparent, rgba(20,15,12,.82));
  transform: translateY(8px); opacity: 0; transition: .35s ease;
}
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid figure:hover figcaption { transform: translateY(0); opacity: 1; }

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.visit-info { display: grid; gap: 1.6rem; align-content: center; }
.visit-info .row { display: flex; gap: 1rem; align-items: flex-start; }
.visit-info .row svg { width: 26px; height: 26px; color: var(--gold); flex: none; margin-top: .2rem; }
.visit-info h3 { font-size: 1.2rem; margin: 0 0 .2rem; }
.visit-info p { margin: 0; color: var(--muted); }
.section-dark .visit-info p { color: #c9bba9; }
.visit-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b6a998; padding: 4rem 0 1.8rem; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer .brand { color: #fff; margin-bottom: .8rem; }
.site-footer h4 { color: var(--gold); font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer p { margin: 0; color: #b6a998; font-size: .94rem; }
.site-footer a { color: #cabda9; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6rem; font-size: .94rem; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.6rem; font-size: .82rem; color: #8a7d6d; }

/* ---------- Menu page ---------- */
.menu-hero {
  text-align: center; color: #fff; padding: calc(var(--nav-h) + 3.5rem) 0 3.5rem;
  background: radial-gradient(120% 90% at 50% 0%, rgba(200,162,74,.14), transparent 55%), var(--red);
  border-bottom: 3px solid var(--gold);
}
.menu-hero .kicker { color: var(--gold-soft); justify-content: center; }
.menu-hero h1 { font-size: clamp(2.6rem, 7vw, 4rem); margin: 0 0 .3rem; }
.menu-hero p { margin: 0; color: #f0e5d3; }

.menu-nav { position: sticky; top: var(--nav-h); z-index: 50; background: rgba(247,241,230,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: .7rem 0; }
.menu-nav .wrap { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.menu-nav .wrap::-webkit-scrollbar { display: none; }
.menu-nav a {
  flex: 0 0 auto; padding: .5rem 1.15rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; color: var(--muted); background: transparent; border: 1px solid var(--line); transition: all .2s ease;
}
.menu-nav a:hover { color: var(--red-bright); border-color: var(--gold); }
.menu-nav a.active { background: var(--red); color: #fff; border-color: var(--red); }

.menu-section { scroll-margin-top: calc(var(--nav-h) + 66px); padding: clamp(2.6rem, 5vw, 3.6rem) 0 .5rem; }
.menu-section:nth-child(even) { background: var(--paper); }
.menu-cat-head { text-align: center; margin-bottom: 2rem; }
.menu-cat-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--red); display: inline-flex; align-items: center; gap: 1rem; }
.menu-cat-head h2::before, .menu-cat-head h2::after { content: ""; width: 34px; height: 1px; background: var(--gold); opacity: .7; }
.menu-note { text-align: center; color: var(--muted); font-style: italic; font-family: var(--font-display); margin: -1rem auto 1.8rem; max-width: 640px; }

.menu-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .3rem 3.5rem; }
.menu-item { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.menu-section:nth-child(even) .menu-item { border-color: var(--cream-2); }
.mi-top { display: flex; align-items: baseline; gap: .5rem; }
.mi-top .name { font-weight: 600; color: var(--text); }
.tag-spicy { color: var(--red-bright); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-left: .45rem; vertical-align: middle; white-space: nowrap; }
.leader { flex: 1 1 auto; min-width: 1.2rem; border-bottom: 1px dotted var(--muted-light); transform: translateY(-4px); opacity: .7; }
.mi-top .price { font-family: var(--font-display); font-weight: 600; color: var(--red); white-space: nowrap; font-size: 1.02rem; }
.menu-item .desc { color: var(--muted); font-size: .88rem; margin: .25rem 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .menu-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 820px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: .5rem 1.3rem 1.4rem;
    transform: translateY(-130%); transition: transform .32s ease; box-shadow: var(--shadow); max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  body.landing .site-header .nav-links { background: var(--cream); }
  body.landing .site-header .nav-links > li > a:not(.btn) { color: var(--text); }
  .nav-links > li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links > li:last-child { border-bottom: 0; padding-top: .9rem; }
  .nav-links > li > a:not(.btn) { display: block; padding: .95rem 0; letter-spacing: .1em; }
  .nav-links .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
  .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .about-grid .framed { order: -1; }
  .framed::before { inset: 12px -12px -12px 12px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-list { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) {
  .menu-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid figure { aspect-ratio: 4 / 3; }
}

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