/* ============================================================
   Yuer Foods · 玉儿家厨
   Warm, appetizing home-kitchen theme
   ============================================================ */

:root {
  --bg:        #fdf8f3;   /* warm cream */
  --bg-alt:    #f6ece2;   /* deeper cream */
  --ink:       #2c2420;   /* near-black warm */
  --ink-soft:  #6b5d52;   /* muted brown */
  --brand:     #b23a30;   /* warm red */
  --brand-dk:  #8f2b23;
  --accent:    #e08a3c;   /* warm orange */
  --line:      #e7dccf;
  --white:     #ffffff;
  --radius:    16px;
  --shadow:    0 6px 24px rgba(80, 50, 30, 0.08);
  --wrap:      1080px;

  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Songti SC", "SimSun", "Noto Serif SC", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Photo slots (replace files in images/) ---------- */
.photo {
  position: relative;
  background: var(--bg-alt);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.photo::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
/* Real image sits on top of the placeholder label once it loads */
.photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Hide the broken-image icon so empty slots look clean */
.photo img:not([src]),
.photo img[src=""] { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 243, 0.9);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; }
.brand-text em { font-style: normal; font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.08em; text-transform: uppercase; }

.nav { display: flex; gap: 24px; }
.nav a { color: var(--ink); font-size: 0.95rem; }
.nav a:hover { color: var(--brand); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  color: var(--brand);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 20px;
}
.hero-en {
  display: block;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 500;
  margin-top: 8px;
}
.lede { font-size: 1.05rem; color: var(--ink); margin: 0 0 28px; }
.lede-en { color: var(--ink-soft); font-size: 0.95rem; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.08s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-dk); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--white); }

.hero-photo { aspect-ratio: 1 / 1; box-shadow: var(--shadow); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 8px;
}
.section-title span { color: var(--ink-soft); font-family: var(--sans); font-weight: 500; font-size: 0.7em; }
.section-sub { color: var(--ink-soft); margin: 0 0 36px; }

/* ---------- Menu grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.card-photo { border: none; border-radius: 0; aspect-ratio: 4 / 3; }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 8px; }
.card-body h3 span { color: var(--ink-soft); font-family: var(--sans); font-weight: 500; font-size: 0.72em; }
.card-body p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Ordering ---------- */
.order-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.steps { margin: 8px 0 0; padding-left: 22px; }
.steps li { margin-bottom: 16px; }
.steps strong { color: var(--ink); }

.order-facts {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 24px;
  box-shadow: var(--shadow);
}
.fact { padding: 18px 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: none; }
.fact-label { display: block; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink-soft); text-transform: uppercase; margin-bottom: 4px; }
.fact-value { font-size: 1.05rem; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci-label { display: block; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink-soft); text-transform: uppercase; margin-bottom: 2px; }
.contact-list a, .contact-list li > span:last-child { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--brand); }

.qr-photo { aspect-ratio: 1 / 1; max-width: 260px; margin: 0 auto; }
.qr-caption { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin: 14px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e9ddd0; padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; }
.footer-note { color: #b9a893; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-inner,
  .order-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 24px; }
  .hero-photo { order: -1; aspect-ratio: 16 / 10; }
  .nav { gap: 16px; font-size: 0.9rem; }
  .brand-text em { display: none; }
}

@media (max-width: 480px) {
  .nav a:not(:last-child) { display: none; } /* keep header tidy on tiny screens */
}
