/* River Roast - cafe & roastery template */

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

:root {
  --cream: #f6f1ea;
  --paper: #fffdf9;
  --espresso: #2c1810;
  --brown: #5c4033;
  --muted: #7a6b5e;
  --line: #e5ddd2;
  --rust: #b45309;
  --rust-soft: #f5ebe0;
  --sage: #6b7f6a;
  --font: "Work Sans", system-ui, sans-serif;
  --display: "Libre Baskerville", Georgia, serif;
}

html { scroll-behavior: smooth; }

body.theme-cafe {
  font-family: var(--font);
  background: var(--cream);
  color: var(--espresso);
  line-height: 1.55;
}

body.theme-cafe a { color: var(--rust); text-decoration: none; }
body.theme-cafe a:hover { color: #92400e; }

.shell { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.site-nav {
  position: sticky;
  top: 42px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 24px;
  background: rgba(246, 241, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--espresso);
}
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--espresso); }
.nav-order {
  background: var(--espresso);
  color: var(--cream) !important;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 0.8125rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  position: relative;
}
.nav-order .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  background: var(--rust);
  color: #fff;
  border-radius: 999px;
  font-size: 0.625rem;
  display: grid;
  place-items: center;
}
.status-pill {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  display: none;
}
.status-pill.is-open {
  display: inline-block;
  background: var(--rust-soft);
  color: var(--rust);
}
.status-pill.is-closed {
  display: inline-block;
  color: var(--muted);
  border: 1px solid var(--line);
}
@media (max-width: 720px) {
  .nav-links { display: none; }
}

.hero-cafe {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  padding: 48px 0 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-cafe { grid-template-columns: 1fr; }
}
.hero-cafe h1 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
}
.hero-cafe .lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 42ch;
}
.hero-cafe .actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-espresso { background: var(--espresso); color: var(--cream); }
.btn-espresso:hover { background: #1a0f0a; }
.btn-rust { background: var(--rust); color: #fff; }
.btn-ghost {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--espresso);
}
.hero-cafe figure img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 5/4;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(44, 24, 16, 0.15);
}
.hero-cafe figcaption {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  font-family: var(--display);
}

.block {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}
.block-head { margin-bottom: 28px; }
.block-head h2 {
  font-family: var(--display);
  font-size: 1.625rem;
  font-weight: 700;
}
.block-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 48ch;
}

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.menu-tabs button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--muted);
}
.menu-tabs button.is-on {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}

.menu-grid {
  display: grid;
  gap: 10px;
}
.menu-item {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
@media (max-width: 560px) {
  .menu-item {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
  }
  .menu-item .price,
  .menu-item .add-btn {
    grid-column: 2;
  }
}
.menu-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}
.menu-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
}
.menu-item p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 4px;
}
.menu-item .price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--rust);
  white-space: nowrap;
}
.menu-item .add-btn {
  padding: 8px 14px;
  font-size: 0.75rem;
}

.beans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.bean-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.bean-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.bean-card .body { padding: 16px 18px 18px; }
.bean-card h3 {
  font-family: var(--display);
  font-size: 1.0625rem;
}
.bean-card .notes {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 6px;
}
.bean-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.bean-card .price { font-weight: 800; color: var(--rust); }

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
@media (max-width: 600px) {
  .photo-row { grid-template-columns: 1fr; }
}
.photo-row img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .two-up { grid-template-columns: 1fr; }
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.hours-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.hours-line.today { font-weight: 700; color: var(--rust); }
.hours-line:last-child { border-bottom: 0; }

/* Order drawer */
.order-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 24, 16, 0.4);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.order-overlay.open { opacity: 1; pointer-events: auto; }
.order-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 100%);
  height: 100%;
  background: var(--paper);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.25s;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.1);
}
.order-drawer.open { transform: translateX(0); }
.order-head {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-head h2 {
  font-family: var(--display);
  font-size: 1.25rem;
}
.order-close {
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
}
.order-lines {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.order-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.order-line .qty-ctrl {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
.order-line .qty-ctrl button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 4px;
  cursor: pointer;
}
.order-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 16px;
  font-size: 0.9375rem;
}
.order-foot {
  padding: 20px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.order-foot .total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.125rem;
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 12px 0 8px;
}
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  font-size: 0.8125rem;
  cursor: pointer;
  font-family: inherit;
}
.chip.selected {
  border-color: var(--espresso);
  background: var(--espresso);
  color: var(--cream);
  font-weight: 600;
}
.order-done {
  display: none;
  margin-top: 12px;
  padding: 12px;
  background: var(--rust-soft);
  border-radius: 6px;
  font-size: 0.8125rem;
}
.order-done.show { display: block; }
.order-done code { font-weight: 700; color: var(--rust); }

.events-list {
  display: grid;
  gap: 12px;
}
.event {
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.event strong { font-family: var(--display); }
.event span { font-size: 0.8125rem; color: var(--muted); }

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.review {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9375rem;
}
.review p { color: var(--muted); margin-top: 8px; }
.review footer { margin-top: 10px; font-weight: 600; font-size: 0.8125rem; }

.site-footer {
  padding: 40px 24px 56px;
  background: var(--espresso);
  color: rgba(246, 241, 234, 0.85);
  font-size: 0.8125rem;
}
.site-footer a { color: #f5d9b8; font-weight: 600; }
