/* ============================================================
 * Loco-feel design language for Why Not Dumplings
 * Dedicated additive stylesheet — does not touch the Prompt theme.
 * Loaded only by the public home layout.
 * ============================================================ */

:root {
  --loco-paper: #faf6ee;
  --loco-paper-deep: #f3ecdd;
  --loco-ink: #1c1a16;
  --loco-muted: #6f6857;
  --loco-red: #e8442e;
  --loco-red-dark: #cf3a26;
  --loco-red-soft: #fdeee9;
  --loco-line: #e7ddc9;
  --loco-dash: #d3c7ac;
}

body {
  background-color: var(--loco-paper);
  color: var(--loco-ink);
}

/* ---------- Nav ---------- */
.loco-nav {
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--loco-line);
}
.loco-nav .navbar-brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--loco-ink) !important;
  font-size: 1.05rem;
}
.loco-nav .nav-link {
  color: var(--loco-ink) !important;
  font-weight: 500;
  font-size: 0.906rem; /* 14.5px */
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
.loco-nav .nav-link:hover { color: var(--loco-red) !important; }

/* ---------- Buttons ---------- */
.loco-btn {
  display: inline-block;
  background: var(--loco-red);
  color: #fff !important;
  font-weight: 650;
  font-size: 0.906rem; /* 14.5px, matches loco.rs */
  border-radius: 10px;
  padding: 0.65rem 1.35rem;
  border: none;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(120, 30, 18, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.loco-btn:hover {
  background: var(--loco-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 rgba(120, 30, 18, 0.35);
}
.loco-btn:active { transform: translateY(1px); box-shadow: none; }
.loco-btn-lg { padding: 0.8rem 1.7rem; font-size: 1.02rem; }
.loco-btn-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.loco-link {
  color: var(--loco-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--loco-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.loco-link:hover { color: var(--loco-red); }

/* ---------- Hero ---------- */
.loco-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--loco-line);
  background: #fff;
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--loco-ink);
}
.loco-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--loco-red);
  box-shadow: 0 0 0 3px var(--loco-red-soft);
}

.loco-title {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(2.5rem, 5vw, 3.75rem); /* 40–60px, matches loco.rs hero */
  color: var(--loco-ink);
}
.loco-title .hl {
  color: var(--loco-red);
  background: linear-gradient(transparent 64%, rgba(232, 68, 46, 0.22) 64%);
  padding: 0 0.08em;
}

.loco-lead {
  color: var(--loco-muted);
  font-size: 1.1875rem; /* 19px, matches loco.rs lede */
  line-height: 1.5;
}

.loco-hand {
  font-family: 'Caveat', cursive;
  font-size: 1.55rem;
  font-weight: 600;
  color: #2f6db3;
  display: inline-block;
  transform: rotate(-7deg);
}

.loco-stats { border-top: 1px solid var(--loco-line); }
.loco-stat b { font-size: 1.12rem; letter-spacing: -0.01em; }
.loco-stat span { color: var(--loco-muted); font-size: 0.84rem; }

/* "today" card, terminal-style */
.loco-today {
  background: #fff;
  border: 1px solid var(--loco-line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(80, 62, 30, 0.12);
  overflow: hidden;
}
.loco-today-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1rem;
  background: var(--loco-paper-deep);
  border-bottom: 1px solid var(--loco-line);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--loco-muted);
}
.loco-today-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 2px;
}
.loco-today-body { padding: 1.1rem 1.25rem; font-size: 0.95rem; }
.loco-today-body .row-line {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.35rem 0;
}
.loco-today-body .k { color: var(--loco-muted); }
.loco-today-body .v { font-weight: 700; text-align: right; }

/* ---------- Keyword strip ---------- */
.loco-strip {
  border-top: 1px solid var(--loco-line);
  border-bottom: 1px solid var(--loco-line);
  color: var(--loco-muted);
  font-size: 0.906rem; /* 14.5px */
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  line-height: 1.5;
}
.loco-strip .sep { margin: 0 0.9rem; opacity: 0.45; }

/* ---------- Section titles ---------- */
.loco-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--loco-red);
}
.loco-h2 {
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.08;
  font-size: clamp(2rem, 3.4vw, 2.375rem); /* 32–38px, matches loco.rs */
  color: var(--loco-ink);
}
.loco-sub { color: var(--loco-muted); font-size: 1.0625rem; line-height: 1.5; }

/* ---------- Cards ---------- */
.loco-card {
  background: #fff;
  border: 1px solid var(--loco-line);
  border-radius: 16px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.loco-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(80, 62, 30, 0.10);
}
.loco-card-dashed::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px dashed var(--loco-dash);
  border-radius: 10px;
  pointer-events: none;
}
.loco-icon-badge {
  width: 46px; height: 46px;
  border: 1.5px dashed var(--loco-red);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--loco-red);
  font-size: 1.35rem;
  background: var(--loco-red-soft);
  transform: rotate(-5deg);
  flex: 0 0 auto;
}
.loco-card h5, .loco-card .card-title {
  font-weight: 700;
  font-size: 1.094rem; /* 17.5px, matches loco.rs */
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--loco-ink);
}
.loco-card p, .loco-card .card-text { color: var(--loco-muted); font-size: 0.906rem; line-height: 1.55; } /* 14.5px */

.loco-stamp {
  position: absolute;
  top: 10px; right: 10px;
  width: 76px; height: 76px;
  border: 1.5px dashed #b3a888;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #a2977d;
  transform: rotate(14deg);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 2;
}

.loco-ticket-sep { border-top: 2px dashed var(--loco-line); }
.loco-price { color: var(--loco-red); font-weight: 800; letter-spacing: -0.01em; }

/* ---------- Menu rows ---------- */
.loco-menu-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
}
.loco-menu-row + .loco-menu-row { border-top: 1px dotted var(--loco-line); }

/* ---------- Schedule table ---------- */
.loco-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--loco-muted);
  border-bottom: 2px solid var(--loco-line) !important;
}
.loco-table td, .loco-table th { padding: 0.8rem 0.75rem; }
.loco-table tbody tr + tr td,
.loco-table tbody tr + tr th { border-top: 1px dashed var(--loco-line); }
.loco-table a { color: var(--loco-ink); font-weight: 600; text-decoration-color: var(--loco-red); text-underline-offset: 2px; }
.loco-table a:hover { color: var(--loco-red); }

/* ---------- Day tickets ---------- */
.loco-day {
  background: #fff;
  border: 1px solid var(--loco-line);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.loco-day:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(80, 62, 30, 0.10); }
.loco-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.9rem;
  background: var(--loco-paper-deep);
  border-bottom: 1.5px dashed var(--loco-dash);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
}
.loco-day-body { padding: 0.65rem 0.9rem 0.8rem; font-size: 0.906rem; line-height: 1.5; }
.loco-day-body .slot { display: flex; gap: 0.55rem; padding: 0.3rem 0; align-items: baseline; }
.loco-day-body .slot + .slot { border-top: 1px dotted var(--loco-line); }
.loco-day-body .slot > span:first-child {
  color: #1c1a16;
  font-weight: 800;
  white-space: nowrap;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.loco-day-body .slot > span:last-child { color: var(--loco-muted); }
.loco-day.is-today { border-color: var(--loco-red); box-shadow: 0 0 0 3px rgba(232, 68, 46, 0.18); }
.loco-day.is-today .loco-day-head { background: var(--loco-red-soft); }
.loco-today-badge {
  display: none;
  background: var(--loco-red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}
.loco-day.is-today .loco-today-badge { display: inline-block; }
.loco-day.is-closed { background: var(--loco-paper-deep); }

/* ---------- Contact values ---------- */
.loco-contact-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--loco-ink);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--loco-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  line-height: 1.45;
}
.loco-contact-value:hover { color: var(--loco-red); }

/* ---------- Footer ---------- */
.loco-footer {
  border-top: 1px solid var(--loco-line);
  color: var(--loco-muted);
  font-size: 0.88rem;
}
.loco-footer a { color: var(--loco-muted); font-weight: 600; text-decoration: none; }
.loco-footer a:hover { color: var(--loco-red); }
.loco-footer .sep { margin: 0 0.6rem; opacity: 0.4; }

/* ---------- Back to top on paper ---------- */
.loco-page .btn-back-to-top {
  background: #fff !important;
  border: 1px solid var(--loco-line) !important;
  color: var(--loco-ink) !important;
}

/* ---------- Playful tilt ---------- */
.loco-card, .loco-day { transform: rotate(var(--tilt, 0deg)); }
.loco-card:hover { transform: rotate(var(--tilt, 0deg)) translateY(-3px); }
.loco-day:hover { transform: rotate(var(--tilt, 0deg)) translateY(-2px); }
.loco-tilt > [class*="col-"]:nth-child(odd) > .loco-card,
.loco-tilt > [class*="col-"]:nth-child(odd) > .loco-day { --tilt: -1.15deg; }
.loco-tilt > [class*="col-"]:nth-child(even) > .loco-card,
.loco-tilt > [class*="col-"]:nth-child(even) > .loco-day { --tilt: 1.05deg; }
.loco-tilt-l { --tilt: -1.6deg; }
.loco-tilt-r { --tilt: 1.2deg; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
  .loco-stamp { width: 62px; height: 62px; font-size: 0.52rem; }
}

/* Mobile: calm the tilt so stacked full-width cards keep an even rhythm. */
@media (max-width: 575.98px) {
  .loco-tilt > [class*="col-"]:nth-child(odd) > .loco-card,
  .loco-tilt > [class*="col-"]:nth-child(odd) > .loco-day { --tilt: -0.6deg; }
  .loco-tilt > [class*="col-"]:nth-child(even) > .loco-card,
  .loco-tilt > [class*="col-"]:nth-child(even) > .loco-day { --tilt: 0.5deg; }
  .loco-tilt-l { --tilt: -0.8deg; }
  .loco-tilt-r { --tilt: 0.6deg; }
}

/* Mobile type scale: small desktop text reads too small on phones,
   so bump the whole scale up one step under 576px. */
@media (max-width: 575.98px) {
  html { font-size: 112.5%; } /* 18px root: whole mobile type scale up one more step */
  .container { --bs-gutter-x: 1.5rem; } /* 12px side padding on phones (Bootstrap default) */
  .loco-pill { font-size: 0.8rem; }
  .loco-kicker { font-size: 0.85rem; }
  .loco-card h5, .loco-card .card-title { font-size: 1.8rem; }
  .loco-card p, .loco-card .card-text { font-size: 1.5rem; line-height: 1.6; }
  .loco-btn { font-size: 1rem; padding: 0.75rem 1.5rem; }
  .loco-btn-lg { font-size: 1.05rem; }
  .loco-strip { font-size: 1rem; }
  .loco-hand { font-size: 1.6rem; }
  .loco-sub { font-size: 1.0625rem; }
  .loco-day-head { font-size: 1.05rem; }
  .loco-day-body { font-size: 0.95rem; }
  .loco-today-badge { font-size: 0.68rem; }
  .loco-contact-value { font-size: 1.4rem; }
  .loco-footer { font-size: 0.95rem; }
}

/* Container: side padding pinned at 12px on sm/md breakpoints;
   720px max-width cap removed on tablets (768-991px), larger
   breakpoints keep Bootstrap's 960/1140/1320 caps. */
@media (min-width: 576px) {
  .container, .container-sm { --bs-gutter-x: 1.5rem; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .container, .container-md, .container-sm { --bs-gutter-x: 1.5rem; }
}
