/* =========================================================
   钰宁季节私厨 · Saisons Wok — style.css
   Modern Oriental · warm & refined (mobile-first)
   ========================================================= */

:root {
  --c-ink:        #1a1614;
  --c-ink-soft:   #4a4340;
  --c-red:        #b7372c;   /* 朱砂红 vermilion */
  --c-red-deep:   #8f2a21;
  --c-gold:       #c9a25c;
  --c-jade:       #5f7a5f;   /* 竹青 */
  --c-cream:      #faf7f1;   /* 米白 */
  --c-cream-2:    #f2ece0;
  --c-line:       #e2d9c8;
  --c-white:      #ffffff;

  --font-display: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --font-body:    "Inter", "Noto Serif SC", -apple-system, "Segoe UI", sans-serif;

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(26,22,20,.08);
  --shadow:    0 10px 30px rgba(26,22,20,.12);
  --shadow-lg: 0 20px 50px rgba(26,22,20,.2);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--c-ink); }
h1 { font-size: 2.1rem; letter-spacing: -.5px; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--c-red);
  margin-bottom: 10px;
}

.section { padding: 56px 0; }
.section-alt { background: var(--c-cream-2); }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub { color: var(--c-ink-soft); margin-top: 12px; font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .22s ease; white-space: nowrap;
}
.btn-primary { background: var(--c-red); color: #fff; box-shadow: 0 6px 18px rgba(183,55,44,.28); }
.btn-primary:hover { background: var(--c-red-deep); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.26); }
.btn-outline { background: transparent; color: var(--c-red); border-color: var(--c-red); }
.btn-outline:hover { background: var(--c-red); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,247,241,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: all .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--c-line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 14px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--c-red);
  color: #fff; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; }
.brand-text small { font-size: .72rem; color: var(--c-ink-soft); letter-spacing: .04em; }

.main-nav { display: none; gap: 26px; }
.main-nav a { font-size: .95rem; font-weight: 500; color: var(--c-ink-soft); position: relative; padding: 4px 0; }
.main-nav a:hover { color: var(--c-red); }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--c-red); transition: width .22s; }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; gap: 2px; background: var(--c-cream-2); border: 1px solid var(--c-line); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: none; background: transparent; font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  color: var(--c-ink-soft); padding: 5px 9px; border-radius: 999px; cursor: pointer; transition: all .18s;
}
.lang-switch button.active { background: var(--c-red); color: #fff; }

.cart-toggle {
  position: relative; border: 1px solid var(--c-line); background: var(--c-white);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.05rem;
  display: grid; place-items: center; transition: all .2s;
}
.cart-toggle:hover { border-color: var(--c-red); }
.cart-count {
  position: absolute; top: -5px; right: -5px; background: var(--c-red); color: #fff;
  font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px;
  display: grid; place-items: center; padding: 0 4px;
}

.nav-toggle { display: flex; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: all .22s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; padding: 100px 0 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(26,22,20,.88) 0%, rgba(26,22,20,.62) 45%, rgba(26,22,20,.34) 100%); }
.hero-inner { position: relative; z-index: 2; color: #fff; max-width: 680px; }
.hero .eyebrow { color: var(--c-gold); }
.hero h1 { color: #fff; font-size: 2.4rem; margin-bottom: 16px; }
.hero-sub { color: rgba(255,255,255,.9); font-size: 1.06rem; margin-bottom: 26px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-badge { font-size: .86rem; color: rgba(255,255,255,.82); }

/* ---------- Values ---------- */
.values { background: var(--c-ink); color: #fff; padding: 34px 0; }
.values-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.value { text-align: center; }
.value-ico { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.value h3 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.value p { color: rgba(255,255,255,.7); font-size: .88rem; }

/* ---------- Menu ---------- */
.category { margin-bottom: 46px; }
.category-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--c-line); }
.category-head h3 { font-size: 1.45rem; color: var(--c-red); }
.cat-emoji { font-size: 1.4rem; }

.dish-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.dish {
  background: var(--c-white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--c-line);
  display: flex; flex-direction: column; transition: all .25s ease;
}
.dish:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dish-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dish:hover .dish-media img { transform: scale(1.06); }
.badge-popular, .badge-veg {
  position: absolute; top: 10px; left: 10px; font-size: .7rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; color: #fff; letter-spacing: .03em;
}
.badge-popular { background: var(--c-red); }
.badge-veg { background: var(--c-jade); }

.dish-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.dish-body h4 { font-size: 1.12rem; margin-bottom: 6px; }
.dish-body p { color: var(--c-ink-soft); font-size: .88rem; flex: 1; }
.dish-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--c-red); }
.btn-add {
  background: var(--c-ink); color: #fff; border: none; font-family: var(--font-body);
  font-weight: 600; font-size: .86rem; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  transition: all .2s;
}
.btn-add:hover { background: var(--c-red); }
.btn-add.added { background: var(--c-jade); }

.menu-note { text-align: center; color: var(--c-ink-soft); font-size: .8rem; font-style: italic; margin-top: 20px; }

/* ---------- Two-column ---------- */
.two-col { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.col-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Table d'hôtes ---------- */
.table-section .two-col { margin-bottom: 40px; }
.steps { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--c-red);
  color: #fff; font-weight: 700; display: grid; place-items: center; font-family: var(--font-display);
}
.step h4 { font-size: 1.02rem; margin-bottom: 2px; }
.step p { font-size: .88rem; color: var(--c-ink-soft); }

.table-menu-title { text-align: center; font-size: 1.5rem; margin-bottom: 20px; }
.table-menus { display: grid; grid-template-columns: 1fr; gap: 20px; }
.table-single-menu { max-width: 640px; margin: 0 auto; }
.tmenu-lead { color: var(--c-ink-soft); font-size: .95rem; margin-bottom: 16px; }
.menu-dishes { list-style: none; margin: 0 0 16px; display: flex; flex-direction: column; gap: 9px; }
.menu-dishes li { position: relative; padding-left: 24px; font-size: .95rem; color: var(--c-ink); }
.menu-dishes li::before { content: "◆"; position: absolute; left: 4px; top: 0; color: var(--c-gold); font-size: .7rem; }
.tmenu-foot { font-size: .84rem; color: var(--c-ink-soft); font-style: italic; margin-bottom: 18px; }
.tmenu {
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: all .25s;
}
.tmenu:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tmenu-featured { border-color: var(--c-gold); border-width: 2px; background: linear-gradient(180deg, #fffdf8, #fff); }
.tmenu-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.tmenu-head h4 { font-size: 1.25rem; }
.tmenu-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--c-red); white-space: nowrap; }
.tmenu-price small { font-family: var(--font-body); font-size: .68rem; color: var(--c-ink-soft); font-weight: 400; display: block; }
.tmenu p { color: var(--c-ink-soft); font-size: .9rem; flex: 1; margin-bottom: 16px; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.contact-list strong { color: var(--c-ink); }
.contact-list a { color: var(--c-red); }
.map-embed { margin-top: 18px; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 200px; border: 0; display: block; }

.contact-form { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; font-weight: 600; }
.contact-form input, .contact-form textarea, .form-grid input, .form-grid textarea {
  font-family: var(--font-body); font-size: .95rem; padding: 11px 13px; border: 1px solid var(--c-line);
  border-radius: var(--radius-sm); background: var(--c-cream); color: var(--c-ink); transition: border .2s;
}
.contact-form input:focus, .contact-form textarea:focus, .form-grid input:focus, .form-grid textarea:focus { outline: none; border-color: var(--c-red); background: #fff; }
.form-note { font-size: .8rem; color: var(--c-ink-soft); text-align: center; }
.form-note.small { font-size: .74rem; color: var(--c-gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: rgba(255,255,255,.8); padding: 44px 0 26px; }
.footer-inner { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.3rem; color: #fff; }
.footer-brand p { font-size: .86rem; margin-top: 6px; color: rgba(255,255,255,.6); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.footer-links a { font-size: .9rem; color: rgba(255,255,255,.8); }
.footer-links a:hover { color: var(--c-gold); }
.footer-trust { font-size: .84rem; color: var(--c-gold); }
.copyright { font-size: .78rem; color: rgba(255,255,255,.5); padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); width: 100%; }
.copyright a { color: rgba(255,255,255,.7); }

/* ---------- Cart drawer ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(26,22,20,.5); opacity: 0; visibility: hidden; transition: all .3s; z-index: 200; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: var(--c-cream); z-index: 210; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--c-line); }
.cart-head h3 { font-size: 1.3rem; }
.cart-close, .modal-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--c-ink-soft); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; gap: 12px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 10px; align-items: center; }
.cart-item img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info h5 { font-size: .92rem; font-family: var(--font-body); font-weight: 600; }
.cart-item-info span { font-size: .82rem; color: var(--c-red); font-weight: 600; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--c-line); background: #fff; cursor: pointer; font-size: .9rem; }
.qty button:hover { border-color: var(--c-red); color: var(--c-red); }
.qty span { min-width: 18px; text-align: center; font-weight: 600; font-size: .9rem; }
.cart-remove { background: none; border: none; cursor: pointer; color: var(--c-ink-soft); font-size: .8rem; }
.cart-empty { padding: 40px 20px; text-align: center; color: var(--c-ink-soft); display: none; }
.cart-empty.show { display: block; }

.cart-foot { padding: 18px 20px; border-top: 1px solid var(--c-line); background: #fff; }
.cart-row { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 8px; }
.cart-row.muted { color: var(--c-ink-soft); font-size: .8rem; }
.cart-row.total { font-size: 1.15rem; font-weight: 700; font-family: var(--font-display); padding-top: 8px; border-top: 1px solid var(--c-line); margin-bottom: 14px; }
.cart-row.total span:last-child { color: var(--c-red); }

/* ---------- Checkout modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(26,22,20,.55); z-index: 220; display: flex; align-items: flex-start; justify-content: center; padding: 20px; overflow-y: auto; opacity: 0; visibility: hidden; transition: all .3s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { background: var(--c-cream); border-radius: var(--radius); width: min(560px, 100%); padding: 28px; position: relative; margin: 40px 0; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 16px; right: 18px; }
.modal-box h2 { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 20px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; font-weight: 600; }
.form-grid .full { grid-column: 1 / -1; }
.checkout-summary { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 18px; }
.checkout-summary h4 { font-size: 1.05rem; margin-bottom: 12px; }
.summary-line { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 6px; color: var(--c-ink-soft); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 80px);
  background: var(--c-ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: .9rem; z-index: 300; opacity: 0; transition: all .3s; box-shadow: var(--shadow);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================
   TABLET / DESKTOP
   ========================================================= */
@media (min-width: 720px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.1rem; }
  .hero h1 { font-size: 3.4rem; }
  .section { padding: 80px 0; }
  .values-grid { grid-template-columns: repeat(4, 1fr); }
  .dish-grid { grid-template-columns: repeat(2, 1fr); }
  .table-menus { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1.1fr 1fr; gap: 44px; }
  .two-col.reverse .col-media { order: 2; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .map-embed iframe { height: 260px; }
}

@media (min-width: 992px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .dish-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { min-height: 96vh; }
}

@media (min-width: 1200px) {
  .header-inner { height: 76px; }
}

/* ---------- Mobile nav open ---------- */
@media (max-width: 991px) {
  .main-nav {
    position: fixed; top: 66px; left: 0; right: 0; background: var(--c-cream);
    flex-direction: column; padding: 20px; gap: 4px; border-bottom: 1px solid var(--c-line);
    transform: translateY(-120%); transition: transform .3s; z-index: 99; box-shadow: var(--shadow);
    display: flex;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--c-line); font-size: 1.05rem; }
}
