/* Jade Wok 萬里香 — Storefront (home) craft layer
   Loaded AFTER jade-wok.css. Editorial, food-forward, jade+gold+chili.
   Every cart/nav/footer component still comes from jade-wok.css so the
   ordering flow stays byte-identical in behaviour. */

:root {
  --paper:        #f7f4ec;
  --paper-2:      #efeadf;
  --ink:          #17201c;
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --maxw:         1180px;
}

html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); }

/* keep the fixed header clear of content */
.jw-main { display: block; }

/* condensing header */
.jw-header { transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.jw-header.scrolled {
  background: rgba(10,37,29,0.97);
  box-shadow: 0 8px 30px rgba(10,37,29,0.28);
}

/* ─────────────────────────────────────────── HERO ─────────────────────── */
.home-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(140px, 20vh, 220px) 0 clamp(90px, 14vh, 150px);
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(200,162,74,0.16) 0%, transparent 55%),
    radial-gradient(90% 80% at 10% 100%, rgba(31,111,87,0.55) 0%, transparent 60%),
    linear-gradient(150deg, #0a251d 0%, #0d3b2e 52%, #123f30 100%);
  color: #fff;
}
/* film grain — pure CSS, subtle, honest texture */
.home-hero__grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .5; mix-blend-mode: overlay;
  background-image:
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.4px);
  background-size: 3px 3px;
}
/* canvas steam sits above gradient, below content */
#steam { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

/* giant bilingual watermark */
.home-hero__watermark {
  position: absolute; z-index: 1; pointer-events: none; user-select: none;
  right: -2%; top: 50%; transform: translateY(-50%);
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(14rem, 40vw, 42rem);
  line-height: .8; font-weight: 700;
  color: rgba(255,255,255,0.045);
  letter-spacing: -.04em;
  white-space: nowrap;
}

.home-hero__inner {
  position: relative; z-index: 3;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  max-width: min(var(--maxw), 100%);
}
.home-hero__col { max-width: 720px; }

.home-hero__seal {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 8px; margin-bottom: 26px;
  border: 1px solid rgba(200,162,74,0.45);
  border-radius: 100px;
  background: rgba(10,37,29,0.35);
  backdrop-filter: blur(4px);
}
.home-hero__seal .seal-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: #0a251d;
  font-family: 'Noto Serif SC', serif; font-weight: 700; font-size: .95rem;
}
.home-hero__seal span:last-child {
  font-size: .74rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-light);
}

.home-hero__zh {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700; line-height: 1;
  color: var(--gold-light);
  text-shadow: 0 4px 40px rgba(200,162,74,0.25);
  margin-bottom: 6px;
}
.home-hero__title {
  font-family: 'Fraunces', 'Playfair Display', serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(3.4rem, 9vw, 6.6rem);
  line-height: .96; letter-spacing: -.02em;
  color: #fff; margin: 0 0 18px;
}
.home-hero__title em {
  font-style: italic; font-weight: 400; color: var(--gold);
}
.home-hero__gloss {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 20px; max-width: 34ch;
}
.home-hero__lede {
  font-size: 1.05rem; line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 48ch; margin-bottom: 30px;
}
.home-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.home-hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  font-size: .86rem; color: rgba(255,255,255,0.82);
}
.home-hero__meta li {
  list-style: none; display: inline-flex; align-items: center; gap: 8px;
}
.home-hero__meta li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex: none;
}

/* ───────────────────────────────────────── TRUST STRIP ─────────────────── */
.trust {
  background: var(--jade-ink); color: var(--gold-light);
  border-top: 1px solid rgba(200,162,74,0.25);
  border-bottom: 1px solid rgba(200,162,74,0.25);
  overflow: hidden;
}
.trust__track {
  display: flex; gap: 0; align-items: center;
  width: max-content;
  animation: trust-scroll 34s linear infinite;
}
.trust__item {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 16px 30px;
  font-family: 'Fraunces', serif; font-size: 1.02rem; font-weight: 500;
  white-space: nowrap;
}
.trust__item::after {
  content: "✦"; color: var(--gold); font-size: .7rem; opacity: .7;
}
@keyframes trust-scroll { to { transform: translateX(-50%); } }

/* ─────────────────────────────────────── SECTION SHELL ─────────────────── */
.section { padding: clamp(64px, 10vw, 110px) 0; }
.section--paper { background: var(--paper); }
.section--tint  { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--jade);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--gold-dark);
}
.section__title {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  color: var(--jade-ink); margin-bottom: 14px; max-width: 20ch;
}
.section__lead {
  font-size: 1.08rem; line-height: 1.75; color: var(--gray-700);
  max-width: 56ch;
}

/* ─────────────────────────────────────── SIGNATURES ────────────────────── */
.sig-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 42px; flex-wrap: wrap;
}
.sig-head .link-more {
  font-weight: 600; color: var(--jade); white-space: nowrap;
  border-bottom: 1px solid transparent; transition: var(--transition);
}
.sig-head .link-more:hover { border-color: var(--gold-dark); color: var(--jade-mid); }

.sig-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.sig-card {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 26px 24px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.sig-card::before { /* jade wash that grows on hover */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120% 100% at 100% 0%, rgba(31,111,87,0.10) 0%, transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.sig-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200,162,74,0.6);
}
.sig-card:hover::before { opacity: 1; }
.sig-card > * { position: relative; z-index: 1; }

.sig-card__no {
  font-family: 'Fraunces', serif; font-weight: 600; font-style: italic;
  font-size: 1.1rem; color: var(--gold-dark); margin-bottom: 8px;
}
.sig-card__name {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 1.35rem; line-height: 1.15; color: var(--jade-ink);
  margin-bottom: 8px;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.sig-card__spice { font-size: .78rem; color: var(--red); font-weight: 700; }
.sig-card__desc {
  font-size: .95rem; line-height: 1.6; color: var(--gray-700);
  margin-bottom: 20px; flex: 1;
}
.sig-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--gray-200);
}
.sig-card__price {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 1.5rem; color: var(--red);
}
.sig-card__price .cur { font-size: .9rem; vertical-align: .35em; margin-right: 1px; }

/* ───────────────────────────────────────────── WHY ─────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.why-lead .section__title { max-width: 16ch; }
.why-lead p { color: var(--gray-700); font-size: 1.06rem; line-height: 1.8; margin-bottom: 18px; }
.why-lead .why-sign {
  font-family: 'Fraunces', serif; font-style: italic;
  color: var(--jade); font-size: 1.15rem; margin-top: 8px;
}
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pillar {
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.pillar:nth-child(even) { transform: translateY(22px); }
.pillar:hover { border-color: rgba(200,162,74,0.6); }
.why-grid:hover .pillar:nth-child(even) { /* keep offset on hover */ }
.pillar__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--jade-soft); color: var(--jade-mid);
  font-size: 1.35rem; margin-bottom: 14px;
}
.pillar h3 { font-size: 1.12rem; color: var(--jade-ink); margin-bottom: 6px; }
.pillar p { font-size: .9rem; line-height: 1.6; color: var(--gray-600); }

@media (max-width: 860px) {
  .pillar:nth-child(even) { transform: none; }
}

/* ──────────────────────────────────────── SERVICES ─────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc {
  text-align: center; padding: 34px 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.svc:hover { background: rgba(200,162,74,0.10); transform: translateY(-4px); }
.svc__icon { font-size: 1.8rem; margin-bottom: 12px; }
.svc h3 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.svc p { color: rgba(255,255,255,0.68); font-size: .88rem; line-height: 1.55; }

.section--jade {
  background:
    radial-gradient(100% 120% at 90% 0%, rgba(200,162,74,0.10) 0%, transparent 55%),
    linear-gradient(160deg, var(--jade-ink) 0%, var(--jade-deep) 100%);
}
.section--jade .eyebrow { color: var(--gold); }
.section--jade .eyebrow::before { background: var(--gold); }
.section--jade .section__title { color: #fff; }
.section--jade .section__lead { color: rgba(255,255,255,0.72); }

/* ──────────────────────────────────────────── VISIT ────────────────────── */
.visit-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: stretch;
}
.facts { display: grid; gap: 14px; align-content: start; }
.fact {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; background: #fff;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.fact__ic {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--jade-soft); font-size: 1.25rem;
}
.fact h3 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--jade); margin-bottom: 4px;
}
.fact p { font-size: .96rem; color: var(--gray-800); line-height: 1.5; }
.fact .fact__sub { font-size: .85rem; color: var(--gray-500); font-style: italic; }
.fact a { color: var(--red); font-weight: 700; }
.fact a:hover { color: var(--red-dark); }

.visit-map {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--gray-200); box-shadow: var(--shadow);
  min-height: 360px;
}
.visit-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

/* ─────────────────────────────────────────── FINALE ────────────────────── */
.finale {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(70px, 11vw, 130px) 0;
  background:
    radial-gradient(90% 120% at 50% -10%, rgba(200,162,74,0.16) 0%, transparent 55%),
    linear-gradient(160deg, var(--jade-mid) 0%, var(--jade-ink) 100%);
  color: #fff;
}
.finale__zh {
  font-family: 'Noto Serif SC', serif; font-size: 2rem;
  color: var(--gold-light); margin-bottom: 10px;
}
.finale h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 14px; }
.finale p { color: rgba(255,255,255,0.78); font-size: 1.1rem; max-width: 52ch; margin: 0 auto 30px; }
.finale .cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ───────────────────────────────────── SCROLL REVEALS ──────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* ────────────────────────────────────── RESPONSIVE ─────────────────────── */
@media (max-width: 980px) {
  .sig-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .visit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sig-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .home-hero__watermark { font-size: 60vw; opacity: .04; }
}

/* ─────────────────────────── ACCESSIBILITY / MOTION ────────────────────── */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .trust__track { animation: none; transform: none; }
  .pillar:nth-child(even) { transform: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
