/* ─── TOKENS ──────────────────────────────────────────── */
:root {
  --c-espresso:   #1a1209;
  --c-dark:       #2d1f0e;
  --c-brown:      #8b5e3c;
  --c-gold:       #c9963b;
  --c-cream:      #faf6f0;
  --c-surface:    #f4ede2;
  --c-border:     #e4d5c3;
  --c-text:       #2d1f0e;
  --c-muted:      #7a6351;
  --ff-serif:     'Playfair Display', Georgia, serif;
  --ff-sans:      'Inter', system-ui, sans-serif;
}
:root:lang(zh-Hans) {
  --ff-serif:     'Noto Sans SC', system-ui, sans-serif;
  --ff-sans:      'Noto Sans SC', system-ui, sans-serif;
}
:root {
  --nav-h:        68px;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 2px 20px rgba(26,18,9,.08);
  --shadow-lg:    0 8px 48px rgba(26,18,9,.14);
  --ease-out:     cubic-bezier(.22,1,.36,1);
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }
input, select, textarea { font: inherit; }
html { font-size: 16px; }
body { font-family: var(--ff-sans); color: var(--c-text); background: var(--c-cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-width: 320px; }
h1, h2, h3 { font-family: var(--ff-serif); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
p  { line-height: 1.7; color: var(--c-muted); }
.section-label { font-family: var(--ff-sans); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-gold); margin-bottom: .6rem; }
.btn-primary { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.8rem; background: var(--c-gold); color: #fff; font-weight: 600; font-size: .95rem; border-radius: 50px; transition: background .2s, transform .15s; }
.btn-primary:hover { background: #b5832c; transform: translateY(-1px); }
.btn-secondary { display: inline-flex; align-items: center; padding: .85rem 1.8rem; border: 1.5px solid rgba(255,255,255,.6); color: #fff; font-weight: 500; font-size: .95rem; border-radius: 50px; transition: background .2s; }
.btn-secondary:hover { background: rgba(255,255,255,.12); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }

/* navbar */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(250,246,240,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
#navbar.scrolled { border-color: var(--c-border); box-shadow: var(--shadow); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; height: var(--nav-h); display: flex; align-items: center; gap: 2rem; }
.logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.logo-fox  { font-size: 1.5rem; line-height: 1; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--ff-serif); font-size: 1.1rem; font-weight: 700; color: var(--c-espresso); line-height: 1.1; }
.logo-sub  { font-size: .65rem; color: var(--c-muted); letter-spacing: .04em; }
.nav-links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav-links a { font-size: .88rem; font-weight: 500; color: var(--c-dark); transition: color .2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 2px; background: var(--c-gold); transform: scaleX(0); transition: transform .25s var(--ease-out); transform-origin: left; }
.nav-links a:hover { color: var(--c-brown); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: .75rem; margin-left: 1rem; }
#lang-select { font-size: .78rem; font-weight: 600; letter-spacing: .05em; color: var(--c-brown); border: 1.5px solid var(--c-border); border-radius: 6px; padding: .28rem .6rem; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; transition: background .2s, color .2s; }
#lang-select:hover { background: var(--c-brown); color: #fff; border-color: var(--c-brown); }
#lang-select option { background: var(--c-dark); color: var(--c-cream); }
.btn-pill { font-size: .85rem; font-weight: 600; background: var(--c-espresso); color: #fff; border-radius: 50px; padding: .45rem 1.2rem; transition: background .2s; }
.btn-pill:hover { background: var(--c-brown); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; touch-action: manipulation; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--c-dark); border-radius: 2px; transition: transform .25s, opacity .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; padding: .5rem 1.5rem 1.2rem; gap: .1rem; border-top: 1px solid var(--c-border); }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--c-dark); padding: .85rem 0; min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--c-border); transition: color .2s; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--c-brown); }

/* hero */
#hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-image: url('https://images.unsplash.com/photo-1554118811-1e0d58224f24?auto=format&fit=crop&w=1920&q=80'); background-size: cover; background-position: center; transform: scale(1.04); transition: transform 8s ease-out; }
#hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(26,18,9,.55) 0%, rgba(26,18,9,.38) 50%, rgba(26,18,9,.65) 100%); }
.hero-content { position: relative; z-index: 1; text-align: center; color: #fff; padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem; max-width: 760px; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 1rem; }
.hero-content h1 { color: #fff; margin-bottom: 1.1rem; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.82); margin-bottom: 2.2rem; max-width: 440px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 1; display: flex; align-items: center; justify-content: center; width: 30px; height: 50px; border: 2px solid rgba(255,255,255,.4); border-radius: 15px; }
.scroll-dot { width: 5px; height: 5px; background: #fff; border-radius: 50%; animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0% { transform: translateY(-6px); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

/* about */
#about { padding: 6rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img-col { position: relative; }
.about-img-col img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow-lg); }
.year-badge { position: absolute; bottom: -1.5rem; right: -1.5rem; width: 90px; height: 90px; background: var(--c-gold); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; box-shadow: 0 4px 20px rgba(201,150,59,.4); }
.year-num { font-family: var(--ff-serif); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.year-lbl { font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.about-text-col h2 { margin-bottom: 1.2rem; color: var(--c-espresso); }
.about-text-col .about-body { margin-bottom: 2rem; }
.features { display: flex; flex-direction: column; gap: 1rem; }
.feature { display: flex; align-items: flex-start; gap: .9rem; }
.feat-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.feature strong { display: block; font-size: .95rem; color: var(--c-dark); margin-bottom: .1rem; }
.feature span { font-size: .85rem; color: var(--c-muted); }

/* menu */
#menu { background: var(--c-espresso); padding: 6rem 1.5rem; color: #fff; }
.section-header { text-align: center; max-width: 560px; margin: 0 auto 3rem; }
.section-header h2 { color: #fff; }
.section-header .section-label { color: var(--c-gold); }
.menu-tabs { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; margin-bottom: 3rem; }
.tab { font-size: .88rem; font-weight: 500; padding: .55rem 1.4rem; border-radius: 50px; color: rgba(255,255,255,.6); border: 1.5px solid rgba(255,255,255,.15); transition: background .2s, color .2s, border-color .2s; }
.tab:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.tab.active { background: var(--c-gold); color: #fff; border-color: transparent; }
.menu-panels { max-width: 1200px; margin: 0 auto; }
.panel { display: none; }
.panel.active { display: block; animation: fadeIn .35s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.card img { aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .4rem; }
.card-row h3 { color: #fff; flex: 1; min-width: 0; }
.price { font-family: var(--ff-serif); font-size: 1.05rem; font-weight: 600; color: var(--c-gold); flex-shrink: 0; }
.card-body p { font-size: .85rem; color: rgba(255,255,255,.55); line-height: 1.5; }
.drinks-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.drink-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1.2rem; }
.drink-icon { font-size: 1.8rem; flex-shrink: 0; }
.drink-card .card-body { padding: 0; }

/* hours */
#hours { background: var(--c-surface); padding: 6rem 1.5rem; }
.hours-wrap { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.hours-info h2 { color: var(--c-espresso); margin-bottom: 1.8rem; }
.hours-list { margin-bottom: 2rem; }
.hours-row { display: flex; justify-content: space-between; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--c-border); font-size: .95rem; }
.hours-row:last-child { border-bottom: none; }
.hours-row span:first-child { color: var(--c-dark); font-weight: 500; }
.hours-row span:last-child { color: var(--c-brown); font-weight: 600; }
.address-block { display: flex; gap: .9rem; align-items: flex-start; background: var(--c-cream); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.8rem; }
.addr-icon { font-size: 1.4rem; flex-shrink: 0; }
.addr-text { display: flex; flex-direction: column; gap: .25rem; }
.addr-text strong { font-size: .95rem; color: var(--c-dark); }
.addr-text span { font-size: .85rem; color: var(--c-muted); }
.addr-text a { font-size: .88rem; color: var(--c-brown); font-weight: 600; margin-top: .1rem; transition: color .2s; }
.addr-text a:hover { color: var(--c-gold); }
.transit-label { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-gold); margin-bottom: .6rem; }
.transit-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.transit-tags span { font-size: .82rem; color: var(--c-muted); background: var(--c-cream); border: 1px solid var(--c-border); border-radius: 50px; padding: .3rem .8rem; }
.hours-map iframe { width: 100%; height: 440px; border: none; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* contact */
#contact { padding: 6rem 1.5rem; max-width: 760px; margin: 0 auto; }
.contact-header { text-align: center; margin-bottom: 3rem; }
.contact-header h2 { color: var(--c-espresso); margin-bottom: .8rem; }
.contact-sub { max-width: 440px; margin: 0 auto; font-size: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
label { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-brown); }
input, select, textarea { padding: .8rem 1rem; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-cream); color: var(--c-dark); font-size: .95rem; transition: border-color .2s, box-shadow .2s; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--c-gold); box-shadow: 0 0 0 3px rgba(201,150,59,.15); }
textarea { resize: vertical; min-height: 90px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b5e3c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
#contact-form > .form-group { margin-bottom: 1.2rem; }
.btn-submit { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: 1rem; background: var(--c-espresso); color: #fff; font-size: 1rem; font-weight: 600; border-radius: var(--radius-sm); transition: background .2s, transform .15s; margin-top: .4rem; }
.btn-submit:hover { background: var(--c-brown); transform: translateY(-1px); }
.form-success { margin-top: 1rem; text-align: center; color: #2e7d4f; font-weight: 500; font-size: .9rem; min-height: 1.4rem; }

/* footer */
footer { background: var(--c-espresso); color: rgba(255,255,255,.7); padding: 3rem 1.5rem 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; flex-direction: column; gap: .4rem; }
.footer-brand .logo-fox { font-size: 1.6rem; }
.footer-brand .logo-name { font-family: var(--ff-serif); font-size: 1.2rem; font-weight: 700; color: #fff; }
.footer-brand p { font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-nav { display: flex; gap: 1.8rem; justify-content: center; }
.footer-nav a { font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-social { display: flex; gap: 1rem; justify-content: flex-end; align-items: center; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; color: rgba(255,255,255,.6); transition: color .2s, border-color .2s, background .2s; }
.footer-social a:hover { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 1.2rem 0; text-align: center; font-size: .78rem; color: rgba(255,255,255,.35); }

@media (max-width: 900px) { .about-wrap { grid-template-columns: 1fr; gap: 2.5rem; } .about-img-col img { aspect-ratio: 3/2; } .year-badge { right: 1rem; } .hours-wrap { grid-template-columns: 1fr; } .hours-map iframe { height: 300px; } .footer-inner { grid-template-columns: 1fr; text-align: center; } .footer-nav { flex-wrap: wrap; } .footer-social { justify-content: center; } }
@media (max-width: 700px) { .nav-links { display: none; } .btn-pill { display: none; } .hamburger { display: flex; } .form-row { grid-template-columns: 1fr; } .cards { grid-template-columns: 1fr; } .drinks-cards { grid-template-columns: 1fr; } #about, #hours, #contact { padding: 4rem 1.25rem; } #menu { padding: 4rem 1.25rem; } .tab { font-size: .8rem; padding: .5rem 1rem; } }
@media (max-width: 560px) {
  /* Menu cards single column earlier */
  .cards { grid-template-columns: 1fr; }
  .drinks-cards { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .hero-btns { flex-direction: column; align-items: stretch; gap: .75rem; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  /* Tighten section padding */
  #about, #hours, #contact { padding: 3.5rem 1rem; }
  #menu { padding: 3.5rem 1rem; }
  /* Cart drawer full-width on tiny screens */
  .cart-drawer { width: 100vw; }
  /* Menu tabs wrap */
  .tab { padding: .45rem .85rem; font-size: .78rem; }
}

/* ─── ADD-TO-CART BUTTON ───────────────────────────────── */
.btn-add { display: inline-block; margin-top: .65rem; font-size: .78rem; font-weight: 600; color: var(--c-brown); border: 1px solid var(--c-border); border-radius: 4px; padding: .28rem .75rem; transition: background .2s, color .2s, border-color .2s; }
.btn-add:hover { background: var(--c-brown); color: #fff; border-color: var(--c-brown); }

/* ─── CART ──────────────────────────────────────────────── */
.cart-fab { position: fixed; bottom: 2rem; right: 2rem; width: 3.4rem; height: 3.4rem; background: var(--c-espresso); color: var(--c-cream); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(0,0,0,.35); z-index: 200; transition: background .2s; }
.cart-fab:hover { background: var(--c-brown); }
.cart-count { position: absolute; top: -3px; right: -3px; min-width: 1.15rem; height: 1.15rem; background: var(--c-gold); color: #fff; font-size: .6rem; font-weight: 700; border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0 .2rem; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 290; opacity: 0; pointer-events: none; transition: opacity .3s; }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; width: min(420px, 100vw); height: 100%; background: var(--c-cream); z-index: 300; transform: translateX(100%); transition: transform .35s cubic-bezier(.22,1,.36,1); display: flex; flex-direction: column; overflow: hidden; }
.cart-drawer.open { transform: translateX(0); }
.cart-hd { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--c-border); flex-shrink: 0; }
.cart-hd h3 { font-family: var(--ff-serif); font-size: 1.25rem; color: var(--c-dark); }
.cart-hd button { color: var(--c-muted); font-size: 1.1rem; transition: color .2s; }
.cart-hd button:hover { color: var(--c-dark); }
.cart-items { flex: 1; overflow-y: auto; padding: .5rem 1.5rem; }
.cart-item { display: flex; align-items: center; gap: .5rem; padding: .7rem 0; border-bottom: 1px solid var(--c-border); }
.ci-name { flex: 1; font-size: .88rem; color: var(--c-text); }
.ci-qty  { color: var(--c-muted); font-size: .82rem; }
.ci-price { min-width: 4rem; text-align: right; font-weight: 600; font-size: .88rem; color: var(--c-dark); }
.ci-remove { color: var(--c-muted); font-size: .75rem; margin-left: .25rem; transition: color .2s; }
.ci-remove:hover { color: #c00; }
.cart-empty { padding: 2.5rem 1.5rem; text-align: center; color: var(--c-muted); font-size: .9rem; }
.cart-footer { padding: 1.5rem; border-top: 1px solid var(--c-border); flex-shrink: 0; }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1rem; color: var(--c-dark); margin-bottom: 1.4rem; }

/* ─── DISCLAIMER ─────────────────────────────────────────── */
.demo-disclaimer { font-size: .68rem; color: rgba(255,255,255,.22); margin-top: .4rem; }
.demo-disclaimer a { color: rgba(201,150,59,.55); }

/* ─── VISUAL POLISH ──────────────────────────────────────── */
/* Image hover zoom on cards */
.card { overflow: hidden; }
.card img { transition: transform .5s var(--ease-out); }
.card:hover img { transform: scale(1.04); }

/* Button press state */
.btn-primary:active  { transform: translateY(0) scale(.98); }
.btn-secondary:active { transform: scale(.98); }
.btn-submit:active { transform: translateY(0) scale(.98); }

/* Better focus ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Hero scroll indicator pulse — subtler */
.scroll-dot { animation-timing-function: cubic-bezier(.42,0,.58,1); }

/* Smooth about image reveal */
.about-img-col img { transition: box-shadow .4s var(--ease-out); }
.about-img-col img:hover { box-shadow: 0 16px 64px rgba(26,18,9,.22); }

/* Card item count badge style for menu */
.menu-tabs { gap: .5rem; }

/* ─── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { transform: scale(1) !important; transition: none; }
  .card img { transition: none; }
}
