/* ── VARIABLES ── */
:root {
    --ink:        #1a1614;
    --paper:      #f5f0eb;
    --crimson:    #c0392b;
    --crimson2:   #a93226; 
    --gold:       #c9a84c;
    --ash:        #3a3330;
    --mist:       #ede8e2;
    --nav-h:      68px;
    --announce-h: 0px;
    --ease:       cubic-bezier(.4,0,.2,1);
  }
  
  /* ── RESET ── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
  }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  
  /* ── NAV ── */
  nav {
    position: fixed; top: var(--announce-h); left: 0; right: 0; z-index: 100;
    height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    background: var(--ink);
    border-bottom: 1px solid rgba(201,168,76,.25);
    transition: background .3s var(--ease);
  }
  .nav-logo {
    display: flex; flex-direction: column; gap: 1px;
  }
  .nav-logo-en {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; font-weight: 600; letter-spacing: .05em;
    color: var(--paper);
  }
  .nav-logo-zh {
    font-family: 'Noto Serif SC', serif;
    font-size: .7rem; letter-spacing: .15em;
    color: var(--gold);
  }
  .nav-links {
    display: flex; align-items: center; gap: 2rem; list-style: none;
  }
  .nav-links a {
    font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(245,240,235,.65);
    transition: color .2s;
    position: relative;
  }
  .nav-links a::after {
    content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
    height: 1px; background: var(--gold); transform: scaleX(0);
    transition: transform .25s var(--ease); transform-origin: left;
  }
  .nav-links a:hover, .nav-links a.active { color: var(--paper); }
  .nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
  
  .nav-order-btn {
    font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
    color: #fff; background: var(--crimson);
    padding: .45rem 1.1rem; border-radius: 3px;
    transition: background .2s; white-space: nowrap; text-decoration: none;
  }
  .nav-order-btn:hover { background: var(--crimson2); }

  /* hamburger */
  .hamburger {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    background: none; border: none; padding: 4px;
  }
  .hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--paper); transition: .3s var(--ease);
  }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
  
  /* mobile menu */
  .mobile-menu {
    display: none; position: fixed; inset: 0; z-index: 99;
    background: var(--ink); padding-top: calc(var(--nav-h) + var(--announce-h));
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2.5rem;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; color: var(--paper); letter-spacing: .05em;
  }
  .mobile-menu a.order { color: var(--gold); }
  
  /* ── PAGES ── */
  .page { display: none; padding-top: calc(var(--nav-h) + var(--announce-h)); }
  .page.active { display: block; }
  
  /* ── HOME ── */
  .hero {
    position: relative; height: calc(100svh - var(--nav-h));
    min-height: 520px;
    display: flex; align-items: flex-end;
    overflow: hidden;
  }
  .hero-bg {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 70% 60% at 60% 40%, rgba(192,57,43,.18) 0%, transparent 70%),
      linear-gradient(160deg, #2c1a17 0%, #1a1614 55%, #2a1f1b 100%);
  }

  .hero-img {
    position: absolute; inset: 0;
    background: url('/assets/images/hero.avif') center/cover no-repeat;
    opacity: .22;
  }
  .hero-content {
    position: relative; z-index: 2;
    padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 8vw, 8rem);
    max-width: 700px;
    animation: fadeUp .9s var(--ease) both;
  }
  .hero-eyebrow {
    display: flex; align-items: center; gap: .75rem;
    margin-bottom: 1.25rem;
  }
  .hero-eyebrow span {
    font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--gold);
  }
  .hero-eyebrow::before {
    content: ''; display: block; width: 36px; height: 1px; background: var(--gold);
  }
  .hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 300; line-height: 1.0;
    color: var(--paper);
    margin-bottom: 1.25rem;
  }
  .hero h1 em { font-style: italic; color: var(--gold); }
  .hero-sub {
    font-size: 1rem; color: rgba(245,240,235,.6);
    font-weight: 300; margin-bottom: 2rem;
    max-width: 440px;
  }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
  
  /* buttons */
  .btn-primary {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--crimson); color: var(--paper);
    padding: .85rem 2rem; font-size: .85rem;
    letter-spacing: .1em; text-transform: uppercase;
    border-radius: 2px; transition: background .2s, transform .2s;
  }
  .btn-primary:hover { background: var(--crimson2); transform: translateY(-1px); }
  .btn-ghost {
    display: inline-flex; align-items: center; gap: .5rem;
    border: 1px solid rgba(245,240,235,.3); color: var(--paper);
    background: transparent;
    padding: .85rem 2rem; font-size: .85rem;
    letter-spacing: .1em; text-transform: uppercase;
    border-radius: 2px; transition: border-color .2s, background .2s;
    cursor: pointer;
  }
  .btn-ghost:hover { border-color: var(--gold); background: rgba(201,168,76,.08); }

  /* real-time Firebase announcements banner (distinct from the static .announce strip above) */
  .announce-banner {
    display: flex; flex-direction: column; gap: .6rem;
    margin: 0 clamp(1.5rem, 6vw, 6rem) 0;
    padding: 1.1rem clamp(1.25rem, 4vw, 2rem);
    background: #fbf3df; border: 1px solid rgba(201,168,76,.45); border-left: 4px solid var(--gold);
    border-radius: 3px;
  }
  .announce-banner-card {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
    font-size: .92rem; color: var(--ink); line-height: 1.55;
  }
  .announce-banner-text { flex: 1; }
  .announce-banner-meta { color: var(--ash); font-size: .82rem; margin-left: .35rem; }
  .announce-banner-dismiss {
    background: none; border: none; color: var(--ash);
    cursor: pointer; font-size: 1.05rem; line-height: 1; padding: 0 .2rem; flex-shrink: 0;
    transition: color .15s;
  }
  .announce-banner-dismiss:hover { color: var(--ink); }

  /* sections */
  .section { padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 6rem); }
  .section-eyebrow {
    display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem;
  }
  .section-eyebrow span {
    font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--crimson);
  }
  .section-eyebrow::before {
    content: ''; display: block; width: 28px; height: 1px; background: var(--crimson);
  }
  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400;
    line-height: 1.15; margin-bottom: 1rem;
  }
  .section-lead {
    font-size: 1rem; color: var(--ash); font-weight: 300;
    max-width: 560px; line-height: 1.75;
  }
  
  /* steps grid */
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2px; margin-top: 3rem;
  }
  .step {
    background: var(--mist);
    padding: 2rem 1.75rem;
    position: relative;
    transition: background .2s;
  }
  .step:hover { background: #e8e0d6; }
  .step-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem; font-weight: 300;
    color: rgba(192,57,43,.15);
    line-height: 1; margin-bottom: .75rem;
  }
  .step-title {
    font-size: .9rem; font-weight: 500; letter-spacing: .04em;
    margin-bottom: .5rem; text-transform: uppercase;
  }
  .step-desc { font-size: .9rem; color: var(--ash); line-height: 1.65; }
  
  /* about strip */
  .about-strip {
    background: var(--ink);
    display: grid; grid-template-columns: 1fr 1fr;
  }
  .about-img {
    background: url('https://images.unsplash.com/photo-1569718212165-3a8278d5f624?w=900&q=80') center/cover no-repeat;
    min-height: 380px;
  }
  .about-body {
    padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 5rem);
    display: flex; flex-direction: column; justify-content: center;
  }
  .about-body .section-eyebrow::before { background: var(--gold); }
  .about-body .section-eyebrow span { color: var(--gold); }
  .about-body .section-title { color: var(--paper); }
  .about-body .section-lead { color: rgba(245,240,235,.65); }
  
  /* hours + location strip */
  .info-strip {
    display: grid; grid-template-columns: 1fr 1fr;
  }
  .info-block {
    padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 5rem);
  }
  .info-block:first-child { background: #5a4035; }
  .info-block:last-child { background: #4a3228; }
  .info-block h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem; margin-bottom: 1.25rem; font-weight: 400;
    color: var(--paper);
  }
  .hours-table { width: 100%; border-collapse: collapse; }
  .hours-table td {
    padding: .4rem 0; font-size: .9rem; color: var(--paper);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .hours-table td:last-child { text-align: right; color: rgba(245,240,235,.6); }
  .hours-table tr.is-today td { color: var(--gold); font-weight: 600; }
  .hours-table td.is-closed,
  .hours-table tr.is-today td.is-closed { color: var(--crimson); }
  .info-contact { display: flex; flex-direction: column; gap: .6rem; }
  .info-contact a {
    font-size: .95rem; color: rgba(245,240,235,.7);
    display: flex; align-items: center; gap: .5rem;
  }
  .info-contact a:hover { color: var(--crimson); }
  
  /* ── MENU PAGE ── */
  .menu-header {
    background: var(--ink);
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 6rem);
    text-align: center;
  }
  .menu-header .section-eyebrow { justify-content: center; }
  .menu-header .section-eyebrow::before { background: var(--gold); }
  .menu-header .section-eyebrow span { color: var(--gold); }
  .menu-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300;
    color: var(--paper); margin-bottom: .75rem;
  }
  .menu-header p { color: rgba(245,240,235,.6); max-width: 520px; margin: 0 auto; }
  
  .menu-body {
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 6rem);
    max-width: 960px; margin: 0 auto;
  }
  .menu-category { margin-bottom: 3.5rem; }
  .menu-cat-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem; font-weight: 400;
    border-bottom: 1px solid rgba(0,0,0,.12);
    padding-bottom: .6rem; margin-bottom: 1.5rem;
    display: flex; align-items: baseline; gap: .75rem;
  }
  .menu-cat-zh {
    font-family: 'Noto Serif SC', serif;
    font-size: 1rem; color: var(--crimson); font-weight: 400;
  }
  .menu-items { display: flex; flex-direction: column; gap: 0; }
  .menu-item {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: .7rem 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .menu-item:last-child { border-bottom: none; }
  .menu-item-name { font-size: .95rem; }
  .menu-item-zh {
    font-family: 'Noto Serif SC', serif;
    font-size: .78rem; color: var(--ash); margin-left: .4rem;
  }
  .menu-item-price {
    font-size: .9rem; font-weight: 500; color: var(--crimson);
    white-space: nowrap; margin-left: 1rem;
  }
  .gf-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: #3f9142; color: #fff; font-size: .68rem; font-weight: 600;
    padding: .1rem .4rem; border-radius: 4px; margin: 0 .3rem;
    vertical-align: middle; letter-spacing: .02em;
  }
  .menu-note {
    background: var(--mist); border-left: 3px solid var(--gold);
    padding: 1rem 1.25rem; margin-bottom: 2rem;
    font-size: .88rem; color: var(--ash); line-height: 1.6;
  }
  .menu-order-cta {
    text-align: center; padding: 3rem 1rem;
    background: var(--mist);
  }
  .menu-order-cta p { margin-bottom: 1.25rem; color: var(--ash); }
  
  /* ── CONTACT PAGE ── */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - var(--nav-h));
  }
  .contact-info {
    padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 5rem);
    background: var(--ink);
    display: flex; flex-direction: column; justify-content: center;
  }
  .contact-info .section-eyebrow::before { background: var(--gold); }
  .contact-info .section-eyebrow span { color: var(--gold); }
  .contact-info .section-title { color: var(--paper); margin-bottom: 1.5rem; }
  .contact-detail {
    display: flex; flex-direction: column; gap: 1.25rem;
    margin-bottom: 2.5rem;
  }
  .contact-item {
    display: flex; flex-direction: column; gap: .25rem;
  }
  .contact-item-label {
    font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
    color: var(--gold);
  }
  .contact-item-value {
    font-size: 1rem; color: rgba(245,240,235,.85);
  }
  .contact-item-value a { color: inherit; transition: color .2s; }
  .contact-item-value a:hover { color: var(--gold); }
  .hours-block { margin-top: 1rem; }
  .hours-block h4 {
    font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
    color: var(--gold); margin-bottom: .75rem;
  }
  .hours-row {
    display: flex; justify-content: space-between;
    font-size: .9rem; color: rgba(245,240,235,.75);
    padding: .3rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .hours-row.is-today { color: var(--gold); font-weight: 600; }
  .hours-row .is-closed { color: var(--crimson); }
  .contact-map {
    position: relative; background: #ccc;
  }
  .contact-map iframe {
    width: 100%; height: 100%; min-height: 420px;
    border: none; display: block;
  }

  /* ── FOOTER ── */
  footer {
    background: var(--ink); color: rgba(245,240,235,.4);
    padding: 2rem clamp(1.5rem, 6vw, 6rem);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
    font-size: .8rem; letter-spacing: .04em;
  }
  footer .footer-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem; color: var(--paper);
  }
  footer .footer-links { display: flex; gap: 1.5rem; }
  footer .footer-links a:hover { color: var(--gold); }
  
  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .fade-in {
    opacity: 0; transform: translateY(20px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
  }
  .fade-in.visible { opacity: 1; transform: none; }
  
  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .about-strip,
    .info-strip,
    .contact-grid { grid-template-columns: 1fr; }
    .about-img { min-height: 240px; order: -1; }
    .contact-map { min-height: 320px; }
    .contact-map iframe { min-height: 320px; }
  }
  @media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-ghost { justify-content: center; }
  }