/* 春熙路北 North Chunxi — menu site */
:root {
  --cream: #fbf6ee;
  --paper: #fffdf9;
  --ink: #1f1a17;
  --muted: #6e625a;
  --line: #eadfd1;
  --chilli: #d2542a;
  --chilli-dark: #a83a1a;
  --wood: #3a2216;
  --radius: 14px;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Noto Sans SC", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 60px); }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Language switching */
html[data-lang="zh"] .en { display: none !important; }
html[data-lang="en"] .zh { display: none !important; }
html[data-lang="en"] h1, html[data-lang="en"] h2 { font-family: var(--display); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; background: var(--chilli); color: #fff; text-decoration: none; font-weight: 700; border: 2px solid var(--chilli); transition: background .2s, transform .2s; }
.btn:hover { background: var(--chilli-dark); border-color: var(--chilli-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-small { padding: 8px 18px; font-size: 14px; white-space: nowrap; }

/* Header — sits on top of the dark hero, turns solid once you scroll */
.site-header { position: sticky; top: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.site-header.scrolled { background: rgba(28, 18, 12, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: rgba(243, 231, 216, .1); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand img { height: 48px; width: auto; background: var(--cream); border-radius: 5px; }
.main-nav { display: flex; gap: 32px; margin-left: auto; }
.main-nav a { text-decoration: none; font-weight: 500; color: rgba(243, 231, 216, .85); transition: color .2s; }
.main-nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(243, 231, 216, .3); border-radius: 50%; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #f3e7d8; transition: transform .25s, opacity .2s; }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.lang-toggle { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid rgba(243, 231, 216, .3); background: transparent; cursor: pointer; font: 600 13px var(--sans); }
.lang-toggle .opt { padding: 5px 11px; border-radius: 999px; color: rgba(243, 231, 216, .75); transition: background .2s, color .2s; }
html[data-lang="zh"] .opt-zh, html[data-lang="en"] .opt-en { background: #f3e7d8; color: var(--ink); }
.header-actions .btn-small { background: transparent; border: 1px solid rgba(243, 231, 216, .6); color: #f3e7d8; font-weight: 500; }
.header-actions .btn-small:hover { background: #f3e7d8; color: var(--ink); border-color: #f3e7d8; }

/* Hero — full-bleed dark photo, text on the left */
main#top { margin-top: calc(-1 * var(--header-h)); }
.hero { position: relative; overflow: hidden; background: #1c120c; color: #f3e7d8; min-height: min(760px, 100vh); display: flex; align-items: center; padding: calc(var(--header-h) + 64px) 0 88px; }
.hero-bg { position: absolute; top: 0; right: 0; bottom: 0; width: 70%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; filter: saturate(1.1) contrast(1.05) brightness(.85); }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #1c120c 0%, rgba(28, 18, 12, .85) 18%, rgba(28, 18, 12, .35) 45%, rgba(28, 18, 12, 0) 70%),
    linear-gradient(180deg, rgba(28, 18, 12, .7) 0%, rgba(28, 18, 12, 0) 28%, rgba(28, 18, 12, 0) 70%, rgba(28, 18, 12, .75) 100%),
    radial-gradient(ellipse at 70% 60%, transparent 40%, rgba(28, 18, 12, .45) 100%); }
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-text { max-width: 520px; }
.hero-eyebrow { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; font-family: var(--serif); font-size: 16px; letter-spacing: .08em; color: rgba(243, 231, 216, .85); }
.hero-eyebrow::after { content: ""; width: 72px; height: 1px; background: rgba(243, 231, 216, .4); }
.hero h1 { font-size: clamp(48px, 7vw, 92px); font-weight: 600; line-height: 1.12; letter-spacing: .06em; color: #fbf3e8; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
html[data-lang="en"] .hero h1 { letter-spacing: 0; font-size: clamp(42px, 5.4vw, 72px); }
html[data-lang="en"] .hero-text { max-width: 640px; }
.hero-sub { margin: 26px 0 34px; padding-top: 22px; border-top: 1px solid rgba(243, 231, 216, .35); display: inline-block; font-family: var(--display); font-size: 24px; line-height: 1.3; color: rgba(243, 231, 216, .9); }
html[data-lang="zh"] .hero-sub { font-family: var(--serif); letter-spacing: .12em; font-size: 22px; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-cream { background: #f3e7d8; border-color: #f3e7d8; color: var(--ink); font-weight: 600; }
.btn-cream small { font-weight: 400; font-size: 13px; opacity: .8; }
.btn-cream:hover { background: #fff; border-color: #fff; }
.btn-line { background: transparent; border: 1px solid rgba(243, 231, 216, .5); color: #f3e7d8; font-weight: 500; }
.btn-line:hover { background: rgba(243, 231, 216, .12); border-color: #f3e7d8; }
.hero-facts { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; }
.hero-facts li { display: flex; flex-direction: column; padding: 0 32px; border-left: 1px solid rgba(243, 231, 216, .3); font-size: 14px; line-height: 1.5; color: rgba(243, 231, 216, .75); }
.hero-facts li:first-child { padding-left: 0; border-left: 0; }
.hero-facts strong { font-family: var(--serif); font-weight: 600; font-size: 22px; color: #fbf3e8; margin-bottom: 4px; }

/* About */
.about { background: var(--wood); color: #f6ece0; padding: 80px 0; }
.about-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
.about h2 { font-size: clamp(28px, 3.6vw, 42px); }
.about .eyebrow { color: #f0a07e; }
.about-text > p { font-size: 17px; margin: 0 0 28px; color: #e6d7c6; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillars li { border-top: 2px solid var(--chilli); padding-top: 14px; font-size: 14px; color: #cdbba8; display: flex; flex-direction: column; gap: 4px; }
.pillars b { color: #fff; font-size: 17px; font-family: var(--serif); }

/* Category tabs */
#menu { scroll-margin-top: var(--header-h); }
.cat-tabs { position: sticky; top: var(--header-h); z-index: 40; background: var(--cream); border-bottom: 1px solid var(--line); }
.cat-tabs-inner { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.cat-tabs-inner::-webkit-scrollbar { display: none; }
.cat-tabs a { flex: none; text-decoration: none; padding: 8px 18px; border-radius: 999px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
@media (hover: hover) {
  .cat-tabs a:hover { background: rgba(210, 84, 42, .1); color: var(--chilli-dark); transform: translateY(-2px); box-shadow: 0 6px 14px -8px rgba(168, 58, 26, .5); }
  .cat-tabs a.active:hover { background: var(--chilli-dark); color: #fff; }
}
.cat-tabs a:active { transform: translateY(0) scale(.96); }
.cat-tabs a:focus-visible { outline: 2px solid var(--chilli); outline-offset: 2px; }
.cat-tabs a.active { background: var(--chilli); color: #fff; }

/* Menu */
.menu-intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; padding: 56px 0 8px; }
.menu-intro h2 { font-size: clamp(34px, 4.5vw, 52px); }
.spice-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0; font-size: 13px; color: var(--muted); }
.legend-note { color: var(--muted); }
.menu-section { padding: 48px 0 16px; }
.section-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 28px; }
.section-head h2 { font-size: 30px; }
.section-head p { margin: 0; color: var(--muted); }
.section-head .section-note { margin-left: auto; color: var(--chilli); font-weight: 500; font-size: 14px; }
.dish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dish { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.dish:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(58, 34, 22, .5); }
.dish-photo { position: relative; padding: 0; border: 0; background: #2a1a12; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.dish:hover .dish-photo img { transform: scale(1.04); }
.more { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.dish-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dish h3 { display: flex; flex-direction: column; gap: 2px; }
.dish-zh { font-size: 20px; }
.dish-en { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--muted); }
html[data-lang="en"] .dish h3 { flex-direction: column-reverse; }
html[data-lang="en"] .dish-en { font-family: var(--display); font-size: 19px; color: var(--ink); font-weight: 600; }
html[data-lang="en"] .dish-zh { display: none; }
.dish p { margin: 0; color: var(--muted); font-size: 14.5px; }
.spice { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--chilli-dark); }
.dish .spice { margin-top: auto; align-self: flex-start; background: #fbe9e1; padding: 3px 10px 3px 8px; border-radius: 999px; }
.spice i { width: 7px; height: 12px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--chilli); transform: rotate(18deg); display: inline-block; }
.spice > span { margin-left: 4px; }

/* Gallery */
.gallery { background: #1c120c; color: #f3e7d8; padding: 88px 0 80px; margin-top: 48px; }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.gallery-eyebrow { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; font-family: var(--serif); font-size: 15px; letter-spacing: .12em; color: #f0a07e; }
.gallery-eyebrow::after { content: ""; width: 64px; height: 1px; background: rgba(243, 231, 216, .35); }
.gallery h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 600; letter-spacing: .04em; color: #fbf3e8; }
html[data-lang="en"] .gallery h2 { letter-spacing: 0; }
.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.g-item { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #2a1a12; cursor: zoom-in; aspect-ratio: 4 / 5; animation: g-in .45s ease both; }
.g-item[hidden] { display: none; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s; }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15, 9, 6, .75) 100%); opacity: 0; transition: opacity .3s; }
.g-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; text-align: left; font-family: var(--serif); font-size: 16px; color: #fff; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
html[data-lang="en"] .g-cap { font-family: var(--display); }
@media (hover: hover) {
  .g-item:hover img { transform: scale(1.06); }
  .g-item:hover::after, .g-item:hover .g-cap { opacity: 1; transform: none; }
}
@media (hover: none) {
  .g-item::after, .g-cap { opacity: 1; transform: none; }
  .g-cap { font-size: 14px; }
}
.g-item:focus-visible { outline: 2px solid #f0a07e; outline-offset: 3px; }
@keyframes g-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.g-more-wrap { display: flex; justify-content: center; margin-top: 36px; }
.g-more { font: 600 15px var(--sans); padding: 12px 28px; border-radius: 999px; border: 1px solid rgba(243, 231, 216, .5); background: transparent; color: #f3e7d8; cursor: pointer; transition: background .2s, color .2s; }
.g-more:hover { background: #f3e7d8; color: var(--ink); }
.g-more-wrap[hidden] { display: none; }

/* Visit */
.visit { padding: 80px 0; background: var(--paper); border-top: 1px solid var(--line); }
.visit-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: stretch; }
.visit h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 28px; }
.visit dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 18px 28px; }
.visit dt { font-weight: 700; color: var(--chilli); font-size: 14px; padding-top: 2px; }
.visit dd { margin: 0; font-size: 17px; }
.visit dd a { color: var(--chilli-dark); font-weight: 500; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 360px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--ink); color: #b9aea4; padding: 40px 0 96px; font-size: 14px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.footer-logo { height: 54px; width: auto; margin-bottom: 10px; background: #fff; padding: 6px 10px; border-radius: 10px; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }
.site-footer .footer-credit { margin-top: 14px; font-size: 12px; color: #7d726a; letter-spacing: .03em; }

/* Floating call button (mobile) */
.call-fab { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; background: var(--chilli); color: #fff; text-decoration: none; text-align: center; font-weight: 700; padding: 14px; border-radius: 999px; box-shadow: 0 10px 24px -8px rgba(168, 58, 26, .7); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 10, 8, .92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-height: 80vh; width: auto; border-radius: 10px; }
.lightbox figcaption { color: #f1e6da; font-family: var(--serif); font-size: 18px; text-align: center; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* Responsive */
@media (max-width: 980px) {
  .dish-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .about-inner, .visit-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-bg { width: 100%; }
  .hero-bg::after { background: linear-gradient(90deg, rgba(28, 18, 12, .92) 0%, rgba(28, 18, 12, .6) 55%, rgba(28, 18, 12, .25) 100%), linear-gradient(180deg, rgba(28, 18, 12, .7) 0%, rgba(28, 18, 12, 0) 30%, rgba(28, 18, 12, .7) 100%); }
  .pillars { grid-template-columns: 1fr; }
  .g-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  :root { --header-h: 62px; }
  .wrap { padding: 0 16px; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px; background: #1c120c; border-bottom: 1px solid rgba(243, 231, 216, .12); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .main-nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid rgba(243, 231, 216, .08); }
  .main-nav a:last-child { border-bottom: 0; }
  .site-header.nav-open { background: #1c120c; }
  .site-header.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .header-actions .btn-small { display: none; }
  .brand img { height: 40px; }
  .hero { min-height: 0; padding: calc(var(--header-h) + 40px) 0 64px; }
  .hero-bg img { object-position: 62% 50%; }
  .hero-sub { font-size: 20px; }
  .hero-facts li { padding: 0 18px; }
  .hero-facts strong { font-size: 19px; }
  .dish-grid { grid-template-columns: 1fr; }
  .gallery { padding: 64px 0 56px; }
  .g-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .section-head .section-note { margin-left: 0; }
  .call-fab { display: block; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}

/* Touch screens (phones, tablets): give small links a finger-sized tap area */
@media (pointer: coarse) {
  .visit dd a, .site-footer a { display: inline-block; padding: 10px 0; }
  .main-nav a { padding-top: 10px; padding-bottom: 10px; }
}

/* Award (inside About, next to the pillars) */
.about-inner { grid-template-columns: 0.8fr 1.3fr 280px; gap: 48px; align-items: center; }
.about-award { margin: 0; }
.award-photo { display: block; width: 100%; padding: 0; border: 1px solid rgba(214, 178, 110, .45); border-radius: 8px; overflow: hidden; background: #000; cursor: zoom-in; box-shadow: 0 20px 40px -22px rgba(0, 0, 0, .8); transition: transform .25s, box-shadow .25s; }
.award-photo img { display: block; width: 100%; height: auto; }
.award-photo:hover { transform: translateY(-3px); box-shadow: 0 26px 48px -22px rgba(0, 0, 0, .9); }
.award-photo:focus-visible { outline: 2px solid #d6b26e; outline-offset: 3px; }
.about-award figcaption { margin-top: 12px; font-size: 14px; color: #d6b26e; text-align: center; }
@media (max-width: 980px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-award { max-width: 300px; }
}
