/* ==========================================================================
   Golden Lotus — Shared Stylesheet
   Modern-minimal editorial with warm heritage accents.
   Used across: index.html, about.html, order.html, contact.html
   --------------------------------------------------------------------------
   Web fonts: Cormorant Garamond (display) + Manrope (body) via Google Fonts,
   loaded in each page's <head>. If offline, the system fallbacks below apply.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* Palette — restrained warm heritage */
  --cream:        #f7f1e6;  /* page background */
  --cream-deep:   #efe6d5;  /* alternating sections */
  --paper:        #fffdf8;  /* cards / surfaces */
  --charcoal:     #211d1a;  /* primary text */
  --ink-soft:     #5b524a;  /* secondary text */
  --line:         #e2d7c4;  /* hairline borders */
  --red:          #cf2b2b;  /* brighter Cantonese red — accent only */
  --red-deep:     #a81f22;  /* hover / pressed */
  --gold:         #b3873c;  /* muted gold — accent only */
  --gold-soft:    #d9be86;

  /* Type */
  --serif: "Cormorant Garamond", "Hoefler Text", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --shadow-sm: 0 2px 10px rgba(33, 29, 26, .06);
  --shadow-md: 0 14px 40px rgba(33, 29, 26, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---- Reset & base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .3px;
  margin: 0 0 .4em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--red); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--gold); }

/* Accessible focus ring for keyboard users */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Layout helpers ----------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tint { background: var(--cream-deep); }
.center { text-align: center; }

/* Small overline label — the recurring heritage motif */
.overline {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1.1rem;
}
.overline::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.overline--center::after { content: ""; width: 26px; height: 1px; background: var(--gold); }

.section-title { font-size: clamp(2rem, 4.6vw, 3.25rem); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 60ch; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .85rem 1.7rem;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--red-deep); color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: var(--cream); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn--light:hover { background: #fff; color: var(--charcoal); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ==========================================================================
   Site header / navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 241, 230, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px;
}
.brand { display: flex; align-items: baseline; gap: .55rem; font-family: var(--serif); }
.brand__name { font-size: 1.5rem; font-weight: 600; letter-spacing: .5px; color: var(--charcoal); }
.brand__zh { font-size: 1.15rem; color: var(--red); font-weight: 600; }
.brand:hover .brand__name { color: var(--charcoal); }

.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: .04em;
  color: var(--charcoal); position: relative; padding: .35rem 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--red); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }

.nav__cta { margin-left: .5rem; }
/* Ensure the nav CTA keeps white text (nav__links a rule is more specific than .btn) and reads as a solid, structured button */
.nav__cta .btn--primary,
.nav__cta .btn--primary:hover {
  color: #fff;
  padding-inline: 1.5rem;
  min-height: 44px;
  border-radius: var(--radius);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .82rem;
  box-shadow: 0 4px 14px rgba(207,43,43,.28);
}
.nav__cta .btn--primary::after { display: none; }

/* Hamburger */
.nav__toggle {
  display: none; width: 46px; height: 46px; border: none; background: transparent;
  cursor: pointer; padding: 10px; border-radius: var(--radius);
}
.nav__toggle span { display: block; height: 2px; background: var(--charcoal); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__toggle span + span { margin-top: 6px; }
.nav[data-open="true"] .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span:nth-child(2) { opacity: 0; }
.nav[data-open="true"] .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;              /* fallback for older browsers */
  min-height: 88svh;            /* stable on mobile — ignores URL-bar collapse */
  max-height: 1080px;           /* don't over-stretch on tall / ultrawide screens */
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero__media, .hero__media video, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,15,12,.28) 0%, rgba(20,15,12,.18) 40%, rgba(20,15,12,.82) 100%);
}
.hero__inner { position: relative; z-index: 2; color: #fff; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero__inner .overline { color: var(--gold-soft); }
.hero__inner .overline::before { background: var(--gold-soft); }
.hero h1 { font-size: clamp(2.8rem, 7.5vw, 6rem); color: #fff; max-width: 15ch; }
.hero__sub { font-size: clamp(1.05rem, 1.9vw, 1.35rem); color: rgba(255,255,255,.9); max-width: 46ch; margin-bottom: 2rem; }

/* ==========================================================================
   Featured dishes
   ========================================================================== */
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.dish-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.dish-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.dish-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.dish-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.dish-card:hover .dish-card__media img { transform: scale(1.06); }
.dish-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.dish-card__body h3 { font-size: 1.6rem; margin-bottom: .25rem; }
.dish-card__body p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* ==========================================================================
   Split / editorial blocks
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4 / 5; object-fit: cover; }
.split__media--frame::before {
  content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--gold);
  border-radius: var(--radius); z-index: -1;
}

/* ==========================================================================
   Atmosphere / social-proof strip
   ========================================================================== */
.proof { background: var(--charcoal); color: var(--cream); }
.proof .grid--3 { gap: clamp(2rem, 5vw, 4rem); }
.proof__item { text-align: center; }
.proof__num { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--gold-soft); line-height: 1; margin-bottom: .4rem; }
.proof__label { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(247,241,230,.72); }

.quote { max-width: 62ch; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.35; font-style: italic; margin: 0 0 1.2rem; }
.quote cite { font-family: var(--sans); font-style: normal; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

/* ==========================================================================
   Menu (Order page)
   ========================================================================== */
.order-bar {
  position: relative; overflow: hidden;
  background: var(--charcoal); color: var(--cream);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem;
  padding: 1.5rem clamp(1.35rem, 4vw, 2.6rem); border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.order-bar::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle at center, rgba(179,135,60,.28), transparent 68%);
  pointer-events: none;
}
.order-bar p { position: relative; margin: 0; font-size: .96rem; line-height: 1.5; color: rgba(247,241,230,.82); }
.order-bar strong { display: block; margin-bottom: .15rem; color: var(--gold-soft); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.order-bar .btn-row { position: relative; }

/* Sticky category jump-nav */
.menu-nav {
  position: sticky; top: 73px; z-index: 40;
  background: rgba(247,241,230,.9); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.menu-nav ul { display: flex; gap: .5rem; overflow-x: auto; list-style: none; margin: 0; padding: .75rem var(--gutter); scrollbar-width: none; }
.menu-nav ul::-webkit-scrollbar { display: none; }
.menu-nav a {
  white-space: nowrap; font-size: .85rem; font-weight: 600; letter-spacing: .03em;
  color: var(--ink-soft); padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.menu-nav a:hover { color: var(--red); border-color: var(--gold); }
.menu-nav a[aria-current="true"] { color: var(--cream); background: var(--red); border-color: var(--red); }

.menu-category { padding-top: clamp(2.75rem, 5vw, 4.25rem); }
.menu-category__head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.9rem; }
.menu-category__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0; line-height: 1; }
.menu-category__head .zh {
  color: var(--gold); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-family: var(--serif);
  line-height: 1; opacity: .55;
}
.menu-category__head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

.menu-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.menu-item {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.menu-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.menu-item__img { width: 84px; height: 84px; flex: none; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow-sm); }
.menu-item__text { flex: 1; min-width: 0; }
.menu-item__row { display: flex; align-items: baseline; gap: .6rem; }
.menu-item__name { font-family: var(--serif); font-size: 1.32rem; font-weight: 600; margin: 0; line-height: 1.2; }
.menu-item__dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); min-width: 12px; }
.menu-item__price {
  font-family: var(--sans); font-weight: 800; font-size: 1.02rem; color: var(--red); white-space: nowrap;
}
.menu-item__desc { color: var(--ink-soft); font-size: .92rem; line-height: 1.55; margin: .35rem 0 0; }
.tag { display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); background: rgba(179,135,60,.09); border: 1px solid var(--gold-soft); border-radius: 999px; padding: .1rem .5rem; margin-left: .45rem; vertical-align: middle; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: none; }
.info-list .ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--cream-deep); color: var(--red); }
.info-list .ico svg { width: 20px; height: 20px; }
.info-list h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 .2rem; font-weight: 700; }
.info-list p { margin: 0; font-size: 1.02rem; }
.info-list a { color: var(--charcoal); }
.info-list a:hover { color: var(--red); }

.map-embed { margin-top: 1.6rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed img, .map-embed iframe { width: 100%; height: 320px; object-fit: cover; display: block; border: 0; }

/* Form */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .04em; margin-bottom: .4rem; }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--charcoal);
  padding: .8rem .95rem; background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(207,43,43,.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: .8rem; }
.form-status { margin-top: 1rem; font-size: .92rem; font-weight: 600; }
.form-status[data-state="ok"] { color: #2f7d3f; }
.form-status[data-state="err"] { color: var(--red); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--charcoal); color: var(--cream); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand__name { color: var(--cream); }
.site-footer p { color: rgba(247,241,230,.72); font-size: .95rem; }
.footer-col h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: rgba(247,241,230,.82); font-size: .95rem; }
.footer-col a:hover { color: var(--gold-soft); }
.socials { display: flex; gap: .8rem; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(247,241,230,.28); border-radius: 50%; color: var(--cream); }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }
.socials svg { width: 18px; height: 18px; }
.footer-base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(247,241,230,.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .82rem; color: rgba(247,241,230,.55); }

/* Page intro banner (About / Order / Contact) */
.page-head { padding-block: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }

/* ==========================================================================
   Scroll-reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .split__media img { aspect-ratio: 16 / 10; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Hero — taller crop window so the dish reads on narrow portrait screens */
  .hero { min-height: 78svh; }
  .hero__media, .hero__media video, .hero__media img { object-position: center center; }

  /* Mobile nav — slide-down panel */
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.2rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav[data-open="true"] .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; }
  .menu-nav { top: 73px; }
  .menu-item { padding: 1rem 1.05rem; gap: .9rem; }
  .menu-item__img { width: 72px; height: 72px; }
}

/* Short / landscape viewports (phones held sideways, small laptops):
   size to the viewport so the headline + buttons never get clipped. */
@media (max-height: 640px) and (orientation: landscape) {
  .hero { min-height: 100svh; max-height: none; }
  .hero__inner { padding-block: clamp(1.5rem, 4vh, 3rem); }
  .hero h1 { font-size: clamp(2.2rem, 6vh, 3.6rem); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ==========================================================================
   Production utilities (replace former inline styles)
   ========================================================================== */
.section--flush { padding-top: 0; }
.stack-btm { margin-bottom: 3rem; }
.stack-top { margin-top: 2.6rem; }
.grid--proof { margin-bottom: 3.5rem; }
.lede--center { margin-inline: auto; margin-bottom: 2rem; }
.btn-row--center { justify-content: center; }
.btn-row--top { margin-top: 1.5rem; }
.btn--block { width: 100%; }
.footer-about { margin-top: 1rem; max-width: 34ch; }
.value__title { font-size: 1.7rem; color: var(--red); margin-bottom: .4rem; }
.form__title { font-size: 1.9rem; margin-bottom: 1.2rem; }
#order-top { scroll-margin-top: 96px; }
.menu-category { scroll-margin-top: 120px; }
.menu-category:last-of-type { padding-bottom: 3rem; }
