:root {
  --paper: #F3F0E8;
  --ink: #14110D;
  --orange: #FF5A1F;
  --line: #DED8C6;
  --fade: #8A8372;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
}
h1, h2, h3, h4, .wm { font-family: 'Space Grotesk', sans-serif; margin: 0; }
button { font-family: inherit; }
[hidden] { display: none !important; }

a { color: var(--orange); text-decoration: underline; text-decoration-color: rgba(255,90,31,0.35); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--orange); }

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.14em; font-weight: 600;
  color: var(--fade); text-transform: uppercase;
}

/* Nav */
.nv {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,240,232,0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.nv.scrolled {
  background: rgba(243,240,232,0.97);
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(20,17,13,0.06);
}
.nv-in { max-width: 1100px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.wm { background: none; border: none; cursor: pointer; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--ink); padding: 0; text-decoration: none; }
.nv-links { display: flex; gap: 22px; align-items: center; }
.nv-link { background: none; border: none; cursor: pointer; font-size: 0.9rem; font-weight: 500; color: var(--ink); padding: 6px 0; text-decoration: none; position: relative; }
.nv-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--orange); transition: right 0.3s ease;
}
.nv-link:hover::after, .nv-link.on::after { right: 0; }
.nv-link.on { color: var(--orange); }
.badge { background: var(--orange); color: #fff; font-size: 0.68rem; padding: 1px 6px; border-radius: 999px; margin-left: 6px; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.burger span { width: 20px; height: 2px; background: var(--ink); display: block; transition: transform 0.3s ease, opacity 0.3s ease; }
.burger.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mob {
  display: flex; flex-direction: column; gap: 4px; padding: 0 24px;
  max-height: 0; opacity: 0; overflow: hidden; pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
}
.mob.open { max-height: 320px; opacity: 1; padding: 6px 24px 18px; pointer-events: auto; }

/* Hero / slideshow */
.hero { position: relative; padding: 70px 24px 26px; min-height: min(72vh, 560px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transition: background 0.8s ease; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenBurns 5.6s ease-out; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0.05) 55%); }
@keyframes kenBurns { from { transform: scale(1.12); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }
.hero-in { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; width: 100%; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin: 14px 0 16px; animation: nameIn 0.5s ease; }
@keyframes nameIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hero-sub { color: rgba(255,255,255,0.85); max-width: 460px; line-height: 1.6; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 2px; border: none;
  cursor: pointer; font-weight: 600; font-size: 0.9rem; text-decoration: none;
  background: var(--ink); color: var(--paper); transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: #2a251c; transform: translateY(-1px); }
.btn-w { background: #fff; color: var(--ink); }
.btn-w:hover { background: #f2f2f2; }
.btn-o { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }
.btn-o:hover { background: rgba(255,255,255,0.1); }
.btn-b { background: var(--ink); color: var(--paper); }
.btn-b:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.hero-progress { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; width: 100%; display: flex; gap: 6px; }
.hbar { flex: 1; height: 3px; background: rgba(255,255,255,0.3); border: none; cursor: pointer; padding: 0; position: relative; overflow: hidden; }
.hbar-fill { position: absolute; inset: 0; background: #fff; transform-origin: left; animation: fillBar linear forwards; }
@keyframes fillBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* About / strip */
.about { max-width: 1100px; margin: 0 auto; padding: 60px 24px 20px; }
.about-text { font-size: 1.2rem; font-weight: 500; font-family: 'Space Grotesk', sans-serif; max-width: 620px; line-height: 1.5; margin-top: 10px; }
.strip-wrap { background: var(--ink); margin-top: 20px; }
.strip { max-width: 1100px; margin: 0 auto; padding: 44px 24px; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.strip h4 { font-size: 0.82rem; margin-bottom: 6px; color: var(--paper); text-transform: uppercase; letter-spacing: 0.08em; }
.strip p { margin: 0; color: rgba(243,240,232,0.62); font-size: 0.92rem; }

/* Menu */
.menu { max-width: 1100px; margin: 0 auto; padding: 50px 24px 90px; }
.menu h2 { font-size: 1.9rem; margin-bottom: 22px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 0.85rem; }
.tab.on { background: var(--ink); color: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.dish { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; display: flex; }
.dish-art { width: 90px; flex-shrink: 0; background-size: cover; background-position: center; }
.dish-body { padding: 14px 16px; flex: 1; }
.dish-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.dish-top h3 { font-size: 1rem; }
.dish-top span { font-weight: 600; font-size: 0.88rem; color: var(--orange); white-space: nowrap; }
.dish-body p { margin: 0 0 10px; color: var(--fade); font-size: 0.85rem; }
.add { background: none; border: 1px solid var(--ink); color: var(--ink); padding: 7px 12px; border-radius: 2px; cursor: pointer; font-size: 0.8rem; font-weight: 500; }
.add:hover { background: var(--ink); color: var(--paper); }

/* Order */
.order { max-width: 1100px; margin: 0 auto; padding: 50px 24px 100px; }
.order h2 { font-size: 1.9rem; margin-bottom: 24px; }
.empty { color: var(--fade); }
.link { background: none; border: none; color: var(--orange); font-weight: 600; cursor: pointer; padding: 0; font-size: inherit; }
.order-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.cart { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 6px 18px; }
.cart-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-of-type { border-bottom: none; }
.cart-row h4 { font-size: 0.95rem; }
.fade { color: var(--fade); font-size: 0.8rem; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 0.9rem; }
.line-total { font-weight: 600; font-size: 0.88rem; min-width: 70px; text-align: right; }
.cart-total { display: flex; justify-content: space-between; padding: 16px 0 10px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 500; }
.form input, .form textarea, .form select { border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; font-family: inherit; font-size: 0.9rem; background: #fff; color: var(--ink); }
.form select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23857F6E' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--orange); }
.form .hint { font-size: 0.78rem; font-weight: 400; color: var(--fade); }
.pay-note { margin: 0; padding: 10px 14px; background: #fff; border: 1px dashed var(--line); border-radius: 4px; font-size: 0.85rem; font-weight: 500; }
.cart-sub { display: flex; justify-content: space-between; padding: 8px 0 0; font-size: 0.88rem; color: var(--fade); }
.confirm p { color: var(--fade); max-width: 480px; margin-bottom: 24px; }

.ft { text-align: center; padding: 34px 24px; background: var(--ink); color: rgba(243,240,232,0.55); font-size: 0.82rem; }
.ft p { margin: 0 0 8px; }
.ft p:last-child { margin-bottom: 0; }
.ft a { color: rgba(243,240,232,0.6); text-decoration: none; }
.ft a:hover { color: var(--orange); }

.form-error {
  background: #fbeaea;
  color: #a02e2e;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* ---------- Shared page container (reservations, admin) ---------- */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 56px 24px 100px; }
.page-wrap h1 { font-size: 1.9rem; margin-bottom: 26px; }

/* ---------- Flash messages ---------- */
.flash-messages { list-style: none; margin: 0 0 24px; padding: 0; max-width: 440px; transition: opacity 0.5s ease; }
.flash-messages.fade-out { opacity: 0; }
.flash-messages li { padding: 11px 16px; border-radius: 4px; font-size: 0.88rem; margin-bottom: 8px; }
.flash-success { background: #eaf6ec; color: #2e7a3f; }
.flash-error { background: #fbeaea; color: #a02e2e; }

/* ---------- Reservation / admin forms ---------- */
.reservation-form {
  display: flex; flex-direction: column; max-width: 440px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 28px;
}
.reservation-form label {
  margin-top: 14px; font-size: 0.78rem; font-weight: 600; color: var(--fade);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.reservation-form label:first-of-type { margin-top: 0; }
.reservation-form input, .reservation-form textarea {
  margin-top: 6px; border: 1px solid var(--line); border-radius: 4px;
  padding: 10px 12px; font-family: inherit; font-size: 0.92rem; background: var(--paper);
  transition: border-color 0.2s ease;
}
.reservation-form input:focus, .reservation-form textarea:focus { outline: none; border-color: var(--orange); }
.reservation-form button.btn { margin-top: 22px; align-self: flex-start; }
.reservation-form button.login-btn { align-self: center; }

.checkbox-label {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  font-size: 0.85rem; font-weight: 400; text-transform: none; letter-spacing: normal;
  color: var(--ink); cursor: pointer;
}
.checkbox-label input[type="checkbox"] { width: auto; margin: 0; }
.field-hint { font-size: 0.8rem; color: var(--fade); margin-top: 6px; }
.admin-image-preview {
  display: block; width: 130px; height: 130px; object-fit: cover;
  border-radius: 6px; margin-top: 10px; border: 1px solid var(--line);
}

.password-field {
  position: relative; display: flex; align-items: center; margin-top: 6px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
  transition: border-color 0.2s ease;
}
.password-field:focus-within { border-color: var(--orange); }
.password-field input { flex: 1; min-width: 0; border: none; background: transparent; margin-top: 0; padding: 10px 12px; }
.password-field input:focus { outline: none; }
.password-toggle {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 42px; height: 100%; background: none; border: none; cursor: pointer; color: var(--fade);
}
.password-toggle:hover { color: var(--orange); }

/* ---------- Contact page: headings + special-request questionnaire ---------- */
.page-wrap h2 { font-size: 1.5rem; margin: 64px 0 8px; }
.page-wrap .lead { color: var(--fade); max-width: 520px; margin: 0 0 22px; }
.reservation-form select {
  margin-top: 6px; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px;
  font-family: inherit; font-size: 0.92rem; background: var(--paper); color: var(--ink);
}
.reservation-form select:focus { outline: none; border-color: var(--orange); }
.req-fields { display: flex; flex-direction: column; }
.choices { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 12px; font-size: 0.78rem; font-weight: 600; color: var(--fade); text-transform: uppercase; letter-spacing: 0.05em; }
.reservation-form .choice {
  display: flex; align-items: center; gap: 12px; margin-top: 0; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--paper); cursor: pointer;
  font-size: 0.95rem; font-weight: 500; color: var(--ink); text-transform: none; letter-spacing: normal;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.reservation-form .choice input { width: auto; margin: 0; padding: 0; border: none; background: none; accent-color: var(--orange); flex-shrink: 0; }
.reservation-form .choice:has(input:checked) { border-color: var(--orange); background: #fff; }
#reqFields { margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--line); }

/* ---------- Admin dashboard ---------- */
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.admin-header h1 { margin-bottom: 0; }
.admin-header > div { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.admin-table th { background: var(--paper); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--fade); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 5px; }
.admin-actions a, .admin-actions .link-btn { margin-right: 10px; }
.link-btn { background: none; border: none; color: var(--orange); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }

.order-status { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; text-transform: capitalize; }
.order-status-new { background: #fef1ea; color: var(--orange); }
.order-status-done, .order-status-fulfilled { background: #eaf6ec; color: #2e7a3f; }

@media (max-width: 780px) {
  .nv-links { display: none; }
  .burger { display: flex; }
  .mob button, .mob a { background: none; border: none; text-align: left; font-weight: 500; cursor: pointer; padding: 8px 0; font-size: 0.95rem; color: var(--ink); text-decoration: none; }
  .grid { grid-template-columns: 1fr; }
  .order-grid { grid-template-columns: 1fr; gap: 28px; }
  .strip { grid-template-columns: 1fr; gap: 22px; padding: 36px 24px; }
  .page-wrap { padding: 36px 18px 70px; }
  .reservation-form { padding: 22px; max-width: none; }

  .admin-header { flex-direction: column; align-items: flex-start; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { border-bottom: 1px solid var(--line); padding: 14px 16px; }
  .admin-table tr:last-child { border-bottom: none; }
  .admin-table td {
    border-bottom: none; padding: 4px 0; display: flex;
    justify-content: space-between; align-items: center; gap: 12px; text-align: right;
  }
  .admin-table td::before {
    content: attr(data-label); font-weight: 700; text-transform: uppercase;
    font-size: 0.7rem; letter-spacing: 0.05em; color: var(--fade); flex-shrink: 0; text-align: left;
  }
  .admin-table td:first-child::before, .admin-table td.admin-actions::before { content: none; }
  .admin-table .admin-thumb { margin-left: auto; }
  .admin-actions { justify-content: flex-end !important; }
}
