/* ===========================================================================
   Canton Food Co. — concept redesign by rainearcher
   Warm green-and-cream editorial. Palette taken from the client's real brand
   (forest green + red accent on cream). Mobile-first, static, no build step.
   =========================================================================== */

:root {
  --green-ink: #0f1d07;   /* deepest green — headlines, dark sections */
  --green: #2c5214;       /* forest green — primary brand */
  --green-mid: #3b6e1c;   /* medium green — accents, hovers */
  --green-soft: #5a8a36;  /* lighter leaf green */
  --red: #ac211e;         /* the client's red accent — order emphasis */
  --red-dark: #8c1a17;
  --cream: #faf7ef;       /* page background */
  --cream-2: #f2ecdd;     /* alt surface */
  --paper: #ffffff;       /* cards */
  --ink: #20271a;         /* body text (warm near-black) */
  --muted: #6a7360;       /* meta / captions */
  --line: #ddd6c4;        /* borders, dividers */
  --wheat: #c9a24a;       /* warm gold support accent */

  --wrap: 1140px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(15,29,7,.05), 0 8px 28px rgba(15,29,7,.07);
  --shadow-lg: 0 18px 50px rgba(15,29,7,.14);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--green-ink);
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: break-word;
  margin: 0;
}

h1 { font-size: clamp(2.1rem, 7.4vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 5vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

p { margin: 0 0 1rem; }
a { color: var(--green-mid); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

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

.eyebrow {
  font-family: "Jost", sans-serif;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  font-weight: 600;
  color: var(--green-mid);
  margin: 0 0 .9rem;
}

.lead { font-size: clamp(1.04rem, 2.3vw, 1.28rem); color: #3a4232; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--green); color: #fdfdf6;
  font-family: "Jost", sans-serif; font-weight: 600; font-size: 1rem;
  padding: .85em 1.4em; border-radius: 999px; border: 1.5px solid var(--green);
  text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  min-height: 48px;
}
.btn:hover { background: var(--green-ink); border-color: var(--green-ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--red { background: var(--red); border-color: var(--red); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--ghost { background: transparent; color: var(--green-ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--green-ink); color: #fdfdf6; border-color: var(--green-ink); }
.btn--sm { font-size: .92rem; padding: .6em 1.1em; min-height: 44px; }
.arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.tlink {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; color: var(--green-ink); text-decoration: none;
  border-bottom: 1.5px solid var(--wheat); padding-bottom: 1px;
}
.tlink:hover { color: var(--red); border-color: var(--red); }
.tlink:hover .arrow { transform: translateX(3px); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,239,.86);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 22px rgba(15,29,7,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand b {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.2rem;
  color: var(--green-ink); letter-spacing: -.01em;
}
.nav { display: none; gap: .3rem; }
.nav a {
  font-family: "Jost", sans-serif; font-weight: 500; font-size: .98rem;
  color: var(--ink); text-decoration: none; padding: .5em .8em; border-radius: 999px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--green); background: var(--cream-2); }
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); cursor: pointer; padding: 0 11px;
}
.nav-toggle span { height: 2px; background: var(--green-ink); border-radius: 2px; transition: transform .25s, opacity .2s; }

.mobile-nav {
  position: fixed; inset: 70px 0 auto 0; z-index: 49;
  background: var(--cream); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 1rem 20px 1.4rem; gap: .2rem;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
  box-shadow: var(--shadow);
}
.mobile-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav a { font-family: "Jost"; font-weight: 500; font-size: 1.1rem; color: var(--ink); text-decoration: none; padding: .8em .4em; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border: 0; margin-top: .6rem; }
.mobile-nav .btn { justify-content: center; }

/* -------------------------------------------------------------------- hero */
.hero { padding: clamp(2.2rem, 6vw, 4.6rem) 0 clamp(2rem, 5vw, 3.4rem); }
.hero .wrap { display: grid; gap: clamp(1.8rem, 5vw, 3.4rem); align-items: center; }
.hero__lead { max-width: 40ch; margin-top: 1.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.7rem 0 1.2rem; }
.hero__note { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; color: var(--muted); font-size: .92rem; font-weight: 500; margin: 0; }
.hero__note .tick { color: var(--green-soft); font-weight: 700; }

.hero__art { position: relative; }
.hero__art img {
  width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); aspect-ratio: 4/3.6; object-fit: cover;
}
.hero__badge {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--green-ink); color: #fdfdf6; font-weight: 600; font-size: .82rem;
  padding: .5em .9em; border-radius: 999px; box-shadow: var(--shadow);
}
.hero__badge b { color: var(--wheat); }

/* ------------------------------------------------------------------- trust */
.trust { background: var(--green-ink); color: #e9efe2; }
.trust .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding: 0; }
.trust .cell { padding: 1.25rem 1rem; text-align: center; }
.trust .cell:nth-child(odd) { box-shadow: 1px 0 0 rgba(255,255,255,.09); }
.trust .num { font-family: "Fraunces", serif; font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 600; color: #fff; line-height: 1; }
.trust .lab { font-size: .82rem; color: #b9c6ab; margin-top: .35rem; letter-spacing: .02em; }

/* --------------------------------------------------------- service promise */
.promise { background: var(--cream); padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.4rem, 6vw, 4rem); }
.promise__head { max-width: 56ch; margin-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.promise__head h2 { margin-bottom: .7rem; }
.promise__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.pcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem 1.5rem 1.6rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfc8b3; }
.pcard__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: .85rem;
  background: var(--cream-2); color: var(--green); font-size: 1.25rem;
}
.pcard h3 { margin-bottom: .4rem; }
.pcard p { color: #4b5340; font-size: .98rem; margin: 0; }
.pcard p [lang="zh"] { color: var(--green); font-weight: 600; }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-head { max-width: 56ch; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: .7rem; }

/* catalog grid */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.cat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.4rem 1.4rem 1.5rem; position: relative; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfc8b3; }
.cat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--green-soft); }
.cat.is-deal::before { background: var(--red); }
.cat__ico { font-family: "Fraunces", serif; font-size: 1.5rem; color: var(--green); margin-bottom: .5rem; display: block; }
.cat h3 { margin-bottom: .35rem; }
.cat p { color: #4b5340; font-size: .98rem; margin: 0; }
.cat .tag { display: inline-block; background: var(--red); color: #fff; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .25em .6em; border-radius: 999px; margin-bottom: .7rem; }
.cat .tag--green { background: var(--green); }
.cat.is-specialty::before { background: var(--wheat); }

.catalog-note { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.catalog-note p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ----------------------------------------------------------- about / story */
.about { background: var(--cream-2); }
.about .wrap { display: grid; gap: clamp(1.6rem, 4vw, 2.4rem); }
.about blockquote { margin: 0; }
.about .hanzi { font-size: clamp(1.4rem, 4vw, 2rem); color: var(--green); font-weight: 600; letter-spacing: .04em; margin: 0 0 .3rem; }
.about .sig { font-family: "Fraunces", serif; font-style: italic; color: var(--green-ink); font-size: 1.05rem; margin-top: .4rem; }
.about-facts { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .7rem; }
.about-facts li { display: flex; gap: .7rem; align-items: flex-start; font-size: 1rem; color: #3a4232; }
.about-facts .dot { color: var(--red); font-weight: 700; line-height: 1.5; }

/* --------------------------------------------------------------- visit/loc */
.visit .wrap { display: grid; gap: clamp(1.6rem, 4vw, 2.6rem); align-items: center; }
.visit__media img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.addr { font-style: normal; font-size: 1.1rem; color: var(--ink); line-height: 1.7; margin: .4rem 0 1.2rem; }
.addr strong { color: var(--green-ink); }

/* ------------------------------------------------------------------- order */
.order { background: var(--green-ink); color: #eef3e8; }
.order h2 { color: #fff; }
.order .lead { color: #c4d2b6; }
.acct {
  display: flex; flex-direction: column; gap: 1rem; align-items: flex-start;
  background: rgba(201,162,74,.1); border: 1px solid rgba(201,162,74,.4);
  border-radius: var(--r); padding: 1.4rem 1.5rem; margin-top: 1.8rem;
}
.acct__text .k { font-family: "Fraunces", serif; font-size: 1.25rem; color: #fff; display: block; margin-bottom: .25rem; }
.acct__text p { margin: 0; color: #c4d2b6; font-size: .96rem; }
.order-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.2rem; }
.order-foot { margin: 1.4rem 0 0; font-size: .9rem; color: #9fb191; display: flex; gap: .5rem; align-items: baseline; }
.ocard {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r); padding: 1.2rem 1.3rem; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: .15rem; transition: background .2s, border-color .2s, transform .2s;
}
.ocard:hover { background: rgba(255,255,255,.1); border-color: var(--wheat); transform: translateY(-2px); }
.ocard .k { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: #9fb191; }
.ocard .v { font-family: "Fraunces", serif; font-size: 1.3rem; color: #fff; word-break: break-word; }
.ocard .sub { font-size: .86rem; color: #b9c6ab; }

/* --------------------------------------------------------------- final cta */
.cta { text-align: center; }
.cta .wrap { max-width: 720px; }
.cta h2 { margin-bottom: .6rem; }
.cta .lead { margin: 0 auto 1.7rem; max-width: 46ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--green-ink); color: #b9c6ab; padding: clamp(2.6rem, 6vw, 3.6rem) 0 2rem; }
.site-footer .wrap { display: grid; gap: 1.8rem; }
.site-footer .brand b { color: #fff; }
.site-footer img.flogo { height: 40px; background: #fff; padding: 7px 10px; border-radius: 8px; }
.site-footer p { font-size: .92rem; max-width: 42ch; }
.foot-links { display: flex; flex-direction: column; gap: .6rem; }
.foot-links a { color: #d7e0cb; text-decoration: none; font-size: .95rem; }
.foot-links a:hover { color: var(--wheat); }
.foot-legal { border-top: 1px solid rgba(255,255,255,.13); padding-top: 1.4rem; font-size: .8rem; color: #8ba07c; line-height: 1.6; }
.foot-legal a { color: #cdd8be; }
.foot-legal .concept { color: var(--wheat); font-weight: 600; }

/* --------------------------------------------------------- sticky orderbar */
.orderbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 48;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--green-ink); color: #fff; border-radius: 999px;
  padding: .6rem .7rem .6rem 1.3rem; box-shadow: var(--shadow-lg);
  transform: translateY(140%); transition: transform .35s var(--ease);
}
.orderbar.show { transform: translateY(0); }
.orderbar span { font-size: .92rem; font-weight: 500; }
.orderbar strong { color: var(--wheat); }

/* -------------------------------------------------------------- reveal anim */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .cat, .ocard { transition: none; }
}

/* -------------------------------------------------------------- breakpoints */
@media (min-width: 620px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .order-grid { grid-template-columns: 1fr 1fr; }
  .acct { flex-direction: row; align-items: center; justify-content: space-between; }
  .acct .btn { flex: none; }
  .trust .wrap { grid-template-columns: repeat(4, 1fr); }
  .trust .cell:nth-child(odd) { box-shadow: none; }
  .trust .cell { box-shadow: 1px 0 0 rgba(255,255,255,.09); }
  .trust .cell:last-child { box-shadow: none; }
}
@media (min-width: 880px) {
  body { font-size: 18px; }
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
  .hero .wrap { grid-template-columns: 1.05fr .95fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .promise__grid { grid-template-columns: repeat(3, 1fr); }
  .about .wrap { grid-template-columns: 1fr 1fr; align-items: center; }
  .visit .wrap { grid-template-columns: 1fr 1.05fr; }
  .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
  .foot-legal { grid-column: 1 / -1; }
  .orderbar { display: none; }
}
