/* Soon Woo Pork Balls — v1. Mobile-first, no frameworks. */
:root {
  --yellow: #f8d021;
  --red: #c31c1b;
  --red-dark: #9f1413;
  --navy: #1b2a4a;
  --cream: #f6f1e8;
  --cream-2: #efe8db;
  --ink: #1a1a1a;
  --muted: #5a5348;
  --line: #e2dacb;
  --card: #fffdf8;
  --shadow: 0 10px 30px rgba(27, 42, 74, 0.08);
  --radius: 1rem;
  --max: 70rem;
  --header-h: 3.6rem;
  --sticky-h: 4.75rem;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC",
    "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.85rem;
  z-index: 100;
  border-radius: 0.35rem;
}
.skip:focus { top: 0.75rem; }

/* Header */
.topbar {
  height: 5px;
  background: var(--yellow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.55rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-mark {
  flex: none;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.4rem;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-text strong {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--muted);
}

.nav {
  display: none;
  gap: 1.15rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover { color: var(--red); }

/* Layout helpers */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.15rem;
}

.section {
  padding: 3.25rem 0;
}

.section-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.section h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.zh {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Hero */
.hero {
  padding: 0 0 2.5rem;
}

.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
}

.hero-photo {
  background: #ece7de;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 40vh;
  object-fit: cover;
  object-position: 40% 42%;
}

.nowrap { white-space: nowrap; }

.hero-copy {
  padding: 1.15rem 1.15rem 0;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.hero .product-zh {
  margin: 0.4rem 0 1rem;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  color: var(--muted);
}

.lead {
  margin: 0 0 1.05rem;
  color: var(--ink);
  max-width: 34rem;
}

.price-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0 0 0.35rem;
}

.price {
  font-size: clamp(2.4rem, 10vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--red);
}

.price-note {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }

.btn-whatsapp {
  background: #128c3e;
  color: #fff;
  box-shadow: 0 6px 16px rgba(18, 140, 62, 0.28);
}

.btn-whatsapp:hover { background: #0e7a35; color: #fff; }

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover { background: var(--red-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-ghost:hover { background: var(--navy); color: #fff; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Gallery */
.gallery { padding-top: 0.5rem; }

.gallery-grid {
  display: grid;
  gap: 1rem;
}

.shot {
  margin: 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.shot img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.shot figcaption {
  padding: 0.7rem 0.9rem 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Guarantee */
.guarantee {
  background: var(--navy);
  color: #f6f1e8;
}

.guarantee h2,
.guarantee .zh { color: #fff; }
.guarantee .zh { color: #c9c3b8; }
.guarantee .section-kicker { color: var(--yellow); }

.guarantee-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(248, 208, 33, 0.35);
  border-radius: 1.1rem;
  padding: 1.4rem 1.25rem 1.5rem;
}

.guarantee-card p {
  margin: 0 0 1rem;
  font-size: 1.12rem;
  line-height: 1.6;
}

.guarantee-card p:last-child { margin-bottom: 0; }

.terms-zh { color: #d9d3c8; font-size: 1rem !important; }

/* Cook */
.cook-intro { margin: 0 0 1.4rem; max-width: 36rem; }

.cook-grid {
  display: grid;
  gap: 1rem;
}

.cook-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: var(--shadow);
}

.cook-card.recommended {
  border: 2px solid var(--red);
}

.badge-rec {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cook-card h3 {
  margin: 0 0 0.15rem;
  font-size: 1.25rem;
  color: var(--navy);
}

.cook-card .zh-sm {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.cook-card .cook-plain {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-weight: 650;
}

.cook-card .cook-plain-zh {
  margin: 0;
  font-weight: 400;
}

.cook-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.45rem 0.75rem;
  font-size: 0.98rem;
}

.cook-card dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.cook-card dd { margin: 0; font-weight: 650; color: var(--navy); }

.guide-note {
  margin: 1.15rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Visit */
.visit-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.visit-card h3 {
  margin: 0 0 0.15rem;
  font-size: 1.25rem;
  color: var(--navy);
}

.addr {
  margin: 1rem 0 0;
  font-style: normal;
  line-height: 1.6;
}

.hours {
  margin: 1.05rem 0 1.25rem;
  padding: 0;
  list-style: none;
}

.hours li { margin: 0.15rem 0; }

.hours .closed { color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.15rem;
}

.site-footer p { margin: 0.25rem 0; }
.site-footer a { color: inherit; }

/* Mobile sticky CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(246, 241, 232, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sticky-cta .price-mini {
  font-weight: 800;
  color: var(--red);
  font-size: 1.15rem;
  line-height: 1.15;
  white-space: nowrap;
}

.sticky-cta .price-mini span {
  display: block;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--muted);
}

.sticky-cta .btn {
  flex: 1;
  min-height: 2.9rem;
  font-size: 0.98rem;
}

/* Desktop */
@media (min-width: 800px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .nav { display: flex; }

  .hero {
    padding: 2.5rem 1.15rem 3rem;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .hero-photo {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }

  .hero-photo img {
    aspect-ratio: 4 / 5;
    max-height: none;
    object-position: 30% 50%;
  }

  .hero-copy { padding: 0; }

  .gallery-grid,
  .cook-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .guarantee-card,
  .visit-card { padding: 1.75rem 1.8rem; }

  .section { padding: 4rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
