/* ================================================================
   ChaoDown Poki — shared styles for every page
   ================================================================ */
:root {
  --ink: #10302f;
  --ink-soft: #3d5957;
  --cream: #fbf6ee;
  --sand: #f1e6d4;
  --coral: #e8664a;
  --coral-dark: #c94f35;
  --chili: #d63b2a;
  --mango: #f3b23c;
  --sea: #1f7a72;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(16, 48, 47, 0.12);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
section { padding-block: clamp(64px, 9vw, 110px); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.text-link { font-weight: 700; color: var(--sea); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--mango);
  color: var(--ink);
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 20px;
}

/* ---------- Image slots ---------- */
.img-slot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand);
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.img-slot.empty img { display: none; }
/* Menu photos: soften overly bright reds and lift crushed blacks */
.menu-page .img-slot img { filter: saturate(0.88) contrast(0.94) brightness(1.03); }
.img-slot.empty {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(16,48,47,0.04) 14px 28px),
    var(--sand);
  border: 2px dashed rgba(16, 48, 47, 0.25);
}
.img-slot.empty::after {
  content: "Add photo: images/" attr(data-file);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  margin: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 999px;
  text-align: center;
}
body.edit-mode .img-slot { cursor: pointer; outline: 3px solid transparent; transition: outline-color .15s; }
body.edit-mode .img-slot:hover { outline-color: var(--mango); }
.edit-banner {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  width: max-content;
  max-width: calc(100% - 32px);
  text-align: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 238, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16, 48, 47, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.logo {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  flex: none;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a { text-decoration: none; font-weight: 500; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--coral); }
.nav-links a.active { font-weight: 700; }
.nav-links .btn { padding: 10px 20px; }
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Page header (Menu / About) ---------- */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); }
.page-head h1 { margin-bottom: 0.3em; }

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 9vw, 110px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 em { font-style: italic; color: var(--coral); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
  font-weight: 500;
  color: var(--ink-soft);
}
.hero-facts li::before { content: "✓ "; color: var(--sea); font-weight: 700; }
.hero-photo { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.hero-badge {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 2;
  background: var(--white);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  line-height: 1.35;
}
.hero-badge strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.1rem; }

/* ---------- Dark band with steps ---------- */
.dark { background: var(--ink); color: var(--cream); }
.dark .lead { color: rgba(251, 246, 238, 0.75); }
.dark .eyebrow { color: var(--mango); }
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
  counter-reset: step;
}
.step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--mango);
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; }
.step p { color: rgba(251, 246, 238, 0.75); margin: 0; font-size: 0.95rem; }
.dark .btn-ghost { border-color: var(--cream); color: var(--cream); }
.dark .btn-ghost:hover { background: var(--cream); color: var(--ink); }

/* ---------- Dish cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.cards.four { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card .img-slot { aspect-ratio: 4 / 3; border-radius: 0; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-top h3 { margin-bottom: 0.3em; }
.price { font-weight: 700; color: var(--coral); white-space: nowrap; }
.card-body p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 14px; }
.card-body p.kids-note { font-size: 0.88rem; font-style: italic; margin: 2px 0 0; }
.card-body p.kids-note .price { font-style: normal; font-size: 0.85rem; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }
.tag {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink-soft);
}

/* ---------- Spice + diet icons ---------- */
.spice {
  display: inline-flex;
  gap: 1px;
  vertical-align: -3px;
  margin-left: 6px;
}
.spice svg { width: 18px; height: 18px; }
.diet {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 5px;
  margin-left: 5px;
  vertical-align: 2px;
  border: 1.5px solid currentColor;
}
.diet.vg { color: #2f8a3a; }
.diet.gf { color: #a16a00; }
.diet.sf { color: #3767a8; }

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
}
.legend strong { font-family: "Fraunces", Georgia, serif; font-size: 1rem; }
.legend span.item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.legend .spice { margin-left: 0; }
.legend .diet { margin-left: 0; margin-right: 2px; vertical-align: 0; }

/* ---------- Menu page ---------- */
.menu-tabs {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid rgba(16,48,47,0.08);
}
.menu-tabs .wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 12px;
  scrollbar-width: none;
}
.menu-tabs a {
  flex: none;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(16,48,47,0.06);
}
.menu-tabs a:hover { background: var(--ink); color: var(--cream); }

.menu-section { padding-block: clamp(48px, 6vw, 72px); border-bottom: 1px solid rgba(16,48,47,0.08); }
.menu-section:last-of-type { border-bottom: 0; }
.menu-section > .wrap > h2 { margin-bottom: 0.2em; }
.section-note { color: var(--ink-soft); margin-bottom: 32px; }

.build-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.build-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.build-step.wide { grid-column: 1 / -1; }
.build-step h3 { display: flex; align-items: center; gap: 12px; }
.build-step h3 .num {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  flex: none;
}
.build-step h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 18px 0 8px;
}
.build-step .hint { font-size: 0.88rem; color: var(--ink-soft); margin: 4px 0 0; }

.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(16,48,47,0.14);
}
.price-list li:last-child { border-bottom: 0; }
.price-list .name { font-weight: 700; }
.price-list .sub { color: var(--ink-soft); font-size: 0.9rem; }
.price-list .dots { flex: 1; }
.price-list .price { margin-left: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  line-height: 1.2;
  background: var(--cream);
  border: 1px solid rgba(16,48,47,0.1);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.93rem;
  font-weight: 500;
}
.chips li small { color: var(--ink-soft); font-weight: 400; }

.sides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 28px;
  box-shadow: var(--shadow);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.drinks-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; }
.drinks-photo { aspect-ratio: 1; box-shadow: var(--shadow); }
.drinks-stack { display: grid; gap: 24px; }
.advisory {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--mango);
  padding-left: 14px;
  margin-top: 28px;
  max-width: 80ch;
}

/* ---------- Story ---------- */
.story { background: var(--sand); }
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.story-photos { max-width: 440px; width: 100%; justify-self: center; }
.story-photos .img-slot { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
blockquote.quote {
  margin: 28px 0;
  padding-left: 20px;
  border-left: 4px solid var(--coral);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
}
blockquote.quote cite {
  display: block;
  margin-top: 8px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- About page ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.value {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.value .icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.value p { color: var(--ink-soft); margin: 0; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.gallery .img-slot { aspect-ratio: 1; }
.social-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Visit ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.info-card h3 { display: flex; align-items: center; gap: 10px; }
.info-card a { font-weight: 700; color: var(--sea); }
.map-card { grid-column: 1 / -1; }
.map-frame {
  height: 300px;
  border-radius: calc(var(--radius) * 0.6);
  overflow: hidden;
  background: var(--sand);
}
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 5px 0; border-bottom: 1px dashed rgba(16,48,47,0.12); }
.hours td:last-child { text-align: right; font-weight: 500; }
.hours tr:last-child td { border-bottom: 0; }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta .hero-actions { justify-content: center; }

/* ---------- Social buttons ---------- */
.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  background: var(--white);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16, 48, 47, 0.08);
  transition: transform 0.15s ease, background 0.15s, color 0.15s;
}
.social:hover { transform: translateY(-2px); background: var(--ink); color: var(--cream); }
.social svg { width: 24px; height: 24px; flex: none; }
.social-icons { display: flex; gap: 12px; margin-top: 18px; }
.social-icons .social { padding: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding-block: 56px 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.site-footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mango);
  margin: 0 0 12px;
}
.site-footer p, .site-footer li { color: rgba(251,246,238,0.75); margin: 0 0 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--mango); }
.site-footer .social { background: rgba(255,255,255,0.08); color: var(--cream); box-shadow: none; }
.site-footer .social:hover { background: var(--coral); color: var(--white); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: rgba(251,246,238,0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  /* 5 steps: 3 on top, 2 below, no empty gap */
  .steps { grid-template-columns: repeat(6, 1fr); }
  .steps .step:nth-child(-n+3) { grid-column: span 2; }
  .steps .step:nth-child(n+4) { grid-column: span 3; }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .cards, .visit-grid, .values { gap: 18px; }
}
@media (max-width: 700px) {
  .cards, .visit-grid, .values { grid-template-columns: 1fr; }
  .map-frame { height: 240px; }
  .card .img-slot { aspect-ratio: 16 / 10; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(16,48,47,0.1);
    padding: 8px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 12px 0; }
  .nav-links .btn { justify-content: center; margin-top: 8px; }
  .hero-grid, .split, .build-grid, .sides-grid, .two-col, .drinks-split { grid-template-columns: 1fr; }
  .drinks-photo { aspect-ratio: 4 / 3; }
  .sides-grid { gap: 0; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .steps, .cards.four { grid-template-columns: 1fr; }
  .steps .step:nth-child(n) { grid-column: auto; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .logo { font-size: 1.25rem; }

  /* Buttons share a row and fill the width */
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; padding: 13px 18px; }

  /* Steps: number sits beside the heading to save space */
  .steps { gap: 12px; margin-top: 32px; }
  .step {
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 14px;
    padding: 18px;
  }
  .step::before { grid-row: span 2; margin-bottom: 0; }
  .step h3 { margin-bottom: 0.2em; }

  /* Cooked bowls: compact rows with a small photo on the left */
  .cards.four .card { flex-direction: row; align-items: stretch; }
  .cards.four .img-slot { aspect-ratio: auto; width: 120px; min-height: 100px; flex: none; }
  .cards.four .img-slot.empty::after { content: "images/" attr(data-file); font-size: 0.7rem; word-break: break-all; }
  .cards.four .card-body { justify-content: center; padding: 16px 18px; }
  .cards.four .card-top { flex-direction: column; gap: 0; }
  .cards.four h3 { font-size: 1.15rem; }

  /* Menu section buttons wrap instead of running off the edge */
  .menu-tabs .wrap { flex-wrap: wrap; justify-content: center; gap: 6px; padding-block: 10px; }
  .menu-tabs a { font-size: 0.82rem; padding: 6px 12px; }
  html { scroll-padding-top: 170px; }

  .build-step, .info-card, .value { padding: 22px 20px; }
  .sides-grid { padding: 8px 20px; }
  .legend { padding: 16px 18px; gap: 8px 18px; }
  .price-list li { flex-wrap: wrap; column-gap: 8px; row-gap: 0; }
  .price-list .name, .price-list .sub { white-space: nowrap; }

  .social-row { gap: 10px; }
  .social-row .social { padding: 8px 14px 8px 10px; }
}
