/* ============================================================
   Boka Catering Workspace — shared styles
   Pulled from bokatime.com/public/style.css tokens so the workspace
   feels native to the brand.
   ============================================================ */
:root {
  --brown-deep: #FF6900;     /* Hermès orange page bg */
  --brown-mid:  #4A3022;
  --brown-soft: #5A3A28;
  --cream:      #FAF6EE;
  --cream-2:    #F2EAD9;
  --cream-3:    #EFE4CE;
  --red:        #E9423E;
  --red-d:      #C73329;
  --yellow:     #F6DC02;
  --ink:        #1F1612;
  --ink-muted:  #6E5A4A;
  --paper:      #FAF6EE;
  --paper-muted:#C9B8A5;
  --hairline:   #4A3022;

  /* Sister-brand accents */
  --shiro-ink:  #0E0E0C;     /* Shirokuro black */
  --shiro-bg:   #F4F0E8;     /* Shirokuro cream */

  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text',    system-ui, 'Segoe UI', Roboto, sans-serif;

  --col-max:    760px;
  --col-pad:    24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--brown-deep);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--col-pad) 96px;
}

/* -------- Top Nav -------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brown-mid);
  color: var(--paper);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topnav .brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--yellow);
  margin-right: 4px;
}
.topnav nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
}
.topnav nav a {
  color: var(--paper);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
  opacity: 0.78;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.topnav nav a:hover { opacity: 1; background: rgba(255,255,255,0.06); }
.topnav nav a.is-active {
  background: var(--brown-deep);
  color: #fff;
  opacity: 1;
  font-weight: 600;
}

.lang-toggle {
  display: inline-flex;
  background: rgba(0,0,0,0.18);
  border-radius: 999px;
  padding: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--paper);
  opacity: 0.6;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}
.lang-toggle button.is-active {
  background: var(--yellow);
  color: var(--brown-mid);
  opacity: 1;
}

/* -------- Hero -------- */
header.hero {
  text-align: center;
  color: var(--paper);
  padding: 36px 0 28px;
}
header.hero h1 {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  font-weight: 800;
}
header.hero .ko-name {
  font-size: 18px;
  opacity: 0.85;
  margin-top: 4px;
  font-weight: 500;
}
header.hero p {
  margin: 8px 0 0;
  opacity: 0.85;
  font-size: 14px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

/* -------- Toolbar -------- */
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 8px 0 24px;
}
.toolbar button, .btn-pill {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--cream-3);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  display: inline-block;
}
.toolbar button:hover, .btn-pill:hover { background: var(--cream-2); }
.toolbar button:active { transform: translateY(1px); }

/* -------- Card -------- */
.card {
  background: var(--cream);
  border-radius: 16px;
  padding: 8px 0 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.card-pad {
  background: var(--cream);
  border-radius: 16px;
  padding: 28px 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  margin-bottom: 20px;
}
.card-pad h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--brown-mid);
  text-transform: lowercase;
  letter-spacing: -0.01em;
}
.card-pad h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 16px 0 8px;
  color: var(--brown-mid);
}

/* -------- Menu sections (used by boka menu) -------- */
section.menu-section {
  border-bottom: 1px solid rgba(74, 48, 34, 0.15);
  padding: 20px 24px;
}
section.menu-section:last-child { border-bottom: none; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800; margin: 0;
  text-transform: lowercase; letter-spacing: -0.01em;
  color: var(--brown-mid);
}
.section-head .count {
  font-size: 12px; color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.section-note {
  font-size: 13px; color: var(--ink-muted);
  font-style: italic; margin: -4px 0 12px;
}
.flavors { font-size: 13px; color: var(--ink-muted); margin: -4px 0 14px; }
.flavors strong {
  color: var(--brown-mid); font-weight: 600;
  text-transform: uppercase; font-size: 11px;
  letter-spacing: 0.06em; margin-right: 6px;
}
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 8px 0;
  border-top: 1px dashed rgba(74, 48, 34, 0.12);
}
.item:first-of-type { border-top: none; }
.item-name { font-weight: 600; color: var(--ink); font-size: 15px; }
.item-name .hot { color: var(--red); margin-left: 4px; font-size: 12px; }
.item-detail {
  grid-column: 1;
  font-size: 13px; color: var(--ink-muted); line-height: 1.35;
}
.item-price {
  grid-row: 1 / span 2; grid-column: 2;
  align-self: start;
  font-weight: 700; color: var(--brown-mid);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  font-size: 15px;
}

/* -------- Hub cards (landing-style links to other pages) -------- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.hub-card {
  background: var(--cream);
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid var(--cream-3);
  display: block;
}
.hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.hub-card .tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.hub-card h3 {
  font-family: var(--font-display);
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--brown-mid);
}
.hub-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* -------- Tier tier-S/A/B/C ribbon -------- */
.tier-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto auto auto;
  gap: 6px 12px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px dashed rgba(74,48,34,0.12);
  font-size: 13px;
}
.tier-row:first-of-type { border-top: none; }
.tier-row .name { font-weight: 600; }
.tier-row .tier {
  display: inline-block;
  width: 28px; height: 22px;
  line-height: 22px;
  border-radius: 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--ink-muted);
}
.tier-S { background: #00875A; }
.tier-A { background: #4A6FE3; }
.tier-B { background: #D87C00; }
.tier-C { background: #B82E2E; }
.tier-P { background: #6C2EB8; }
.tier-row .mark {
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
}

/* -------- Package card -------- */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.pkg {
  background: var(--cream-2);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid var(--cream-3);
}
.pkg .pkg-tag {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 800; color: var(--red);
}
.pkg h4 {
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--brown-mid);
}
.pkg ul {
  margin: 0; padding-left: 18px;
  font-size: 13px; color: var(--ink);
}
.pkg .pkg-note {
  margin-top: 10px;
  font-size: 12px; font-style: italic;
  color: var(--ink-muted);
}

/* -------- JS-Kitchen-style order form (pastel tiered columns) -------- */
.jsk-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.jsk-col { border-right: 1px solid var(--ink); padding: 0; }
.jsk-col:last-child { border-right: none; }
.jsk-tierhead {
  padding: 10px 12px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid var(--ink);
}
.jsk-tierhead.t1 { background: #BFB87A; }
.jsk-tierhead.t2 { background: #A8C3CC; }
.jsk-tierhead.t3 { background: #F2C896; }
.jsk-tierhead.t4 { background: #C9B6D9; }
.jsk-pick {
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  display: inline-block;
  margin: 8px 0 8px 8px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  border-radius: 2px 0 0 2px;
}
.jsk-list {
  list-style: none;
  margin: 0;
  padding: 0 12px 12px;
  font-size: 13px;
}
.jsk-list li {
  padding: 3px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.jsk-list li::before {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 1px;
}
.jsk-banchan {
  background: #B9E1E1;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  border-top: 1px solid var(--ink);
}
.jsk-banchan .pick {
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.jsk-banchan ul {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: 18px;
}
.jsk-banchan ul li {
  display: flex; align-items: center; gap: 4px;
}
.jsk-banchan ul li::before {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
}

/* -------- Comparison table -------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.compare th, .compare td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--cream-3);
  vertical-align: top;
}
.compare th {
  background: var(--cream-2);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brown-mid);
}
.compare tr:hover td { background: rgba(255, 105, 0, 0.04); }

/* -------- Footer -------- */
footer.foot {
  text-align: center;
  color: var(--paper);
  opacity: 0.7;
  margin-top: 32px;
  font-size: 12px;
  line-height: 1.6;
}
footer.foot a { color: var(--paper); text-decoration: underline; }

/* -------- Print -------- */
@media print {
  body { background: #fff; }
  .topnav, .toolbar { display: none; }
  header.hero, footer.foot { color: #000; }
  header.hero p { opacity: 1; }
  .card, .card-pad { box-shadow: none; }
  section.menu-section { page-break-inside: avoid; }
}

/* -------- Mobile tweaks -------- */
@media (max-width: 640px) {
  header.hero h1 { font-size: 28px; }
  .jsk-tiers { grid-template-columns: 1fr 1fr; }
  .jsk-col:nth-child(2n) { border-right: none; }
  .jsk-col:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
}
