/* ── Restaurant Menu + Specials — trattoria at dusk ─────────────────
   Basil-green wall, slate chalkboard specials with hand-chalk
   lettering, cream butcher-paper carte with dotted leaders and
   double-rule border, checkered VIP band, hanging OPEN sign. */

:root {
  --basil: #2c4636;
  --basil-deep: #22382b;
  --slate: #2b3134;
  --chalk: #eef0ea;
  --cream: #f7f0dd;
  --cream-deep: #efe5cb;
  --tomato: #c73b2d;
  --tomato-deep: #a52b1f;
  --ink: #3a3226;
  --ink-soft: #857a63;
  --err: #ffb3a6;
  --hand: 'Caveat', cursive;
  --serif: 'Lora', serif;
  --sans: 'Nunito Sans', sans-serif;
}

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

.hidden { display: none !important; }

body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 2px, transparent 2px 90px),
    linear-gradient(180deg, var(--basil), var(--basil-deep));
  background-attachment: fixed;
  min-height: 100vh;
}

.trattoria { min-height: 100vh; display: flex; flex-direction: column; }

.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 24px; flex: 1 0 auto; padding-bottom: 56px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 52px 24px 14px; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.3rem, 9vw, 3.4rem);
  color: var(--cream);
  letter-spacing: 0.01em;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: rgba(247, 240, 221, 0.75);
  margin-top: 6px;
}

/* ── Chalkboard ───────────────────────────────────────────────────── */
.board { padding-top: 24px; }

.board-frame {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(238, 240, 234, 0.05), transparent 60%),
    var(--slate);
  border: 10px solid #7a5a3a;
  border-radius: 8px;
  padding: 28px 30px 24px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.board-title {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 2rem;
  color: var(--chalk);
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%) rotate(-1.2deg);
}

.board-title::after {
  content: '';
  display: block;
  height: 3px;
  margin-top: 2px;
  background: linear-gradient(90deg, transparent, rgba(238, 240, 234, 0.7) 20% 80%, transparent);
  border-radius: 999px;
}

.specials { list-style: none; margin-top: 18px; }

.specials li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(238, 240, 234, 0.18);
}

.specials li:last-child { border-bottom: none; }

.sp-name {
  font-family: var(--hand);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--chalk);
}

.sp-price {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.35rem;
  color: #f0d97c;
}

.board-note {
  font-family: var(--hand);
  font-size: 1.1rem;
  color: rgba(238, 240, 234, 0.6);
  text-align: right;
  margin-top: 10px;
  transform: rotate(-1deg);
}

.chalk-smudge {
  position: absolute;
  bottom: 12px;
  left: 22px;
  width: 60px;
  height: 12px;
  background: rgba(238, 240, 234, 0.12);
  border-radius: 50%;
  filter: blur(3px);
}

/* ── Carte ────────────────────────────────────────────────────────── */
.carte { margin-top: 30px; }

.carte-inner {
  background:
    repeating-linear-gradient(0deg, rgba(58, 50, 38, 0.02) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, var(--cream), var(--cream-deep));
  border: 1.5px solid #c9b98f;
  outline: 1.5px solid #c9b98f;
  outline-offset: 4px;
  border-radius: 3px;
  padding: 34px 34px 30px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.carte-head {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.7rem;
  text-align: center;
  color: var(--ink);
}

.carte-head::after {
  content: '\2766';
  display: block;
  font-size: 1rem;
  color: var(--tomato);
  margin-top: 6px;
}

.course {
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--tomato);
  text-align: center;
  margin: 26px 0 10px;
}

.dishes { list-style: none; }

.dishes li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
}

.d-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.98rem;
}

.dots {
  flex: 1;
  border-bottom: 2px dotted #c9b98f;
  transform: translateY(-4px);
}

.d-price {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.98rem;
  font-variant-numeric: oldstyle-nums;
  color: var(--ink);
}

/* ── VIP band ─────────────────────────────────────────────────────── */
.vip {
  margin-top: 30px;
  background:
    repeating-conic-gradient(var(--tomato) 0% 25%, #fff 0% 50%) 0 0 / 34px 34px;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.vip-inner {
  background: #fffdf5;
  border-radius: 8px;
  padding: 28px 28px 24px;
  text-align: center;
}

.vip h2, .vip-done h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--tomato-deep);
}

.vip-sub { color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; margin-top: 6px; }

.vip-row { display: flex; gap: 10px; margin-top: 18px; }

input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid #e2d5b4;
  border-radius: 10px;
  transition: border-color 0.15s ease;
}

input:focus { outline: none; border-color: var(--tomato); }
input.error { border-color: #c73b2d; }
input::placeholder { color: #bfb193; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #d94b3c, var(--tomato-deep));
  border: none;
  border-radius: 10px;
  padding: 13px 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease;
  box-shadow: 0 4px 0 #7e1f15;
}

.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--basil); outline-offset: 3px; }

.form-error { color: #c73b2d; font-weight: 700; font-size: 0.88rem; margin-top: 12px; }

.vip-done { padding: 6px 0; }

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Hours ────────────────────────────────────────────────────────── */
.hours { text-align: center; padding: 34px 10px 0; }

.open-sign {
  position: relative;
  display: inline-block;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.34em;
  color: var(--cream);
  background: #7a5a3a;
  border-radius: 6px;
  padding: 8px 22px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.open-sign::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 14px;
  background: rgba(247, 240, 221, 0.4);
}

.hours-line {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--cream);
  margin-top: 16px;
}

.address-line { color: rgba(247, 240, 221, 0.65); font-size: 0.88rem; margin-top: 2px; }

/* ── Footer ───────────────────────────────────────────────────────── */
.foot {
  text-align: center;
  padding: 30px 20px;
  color: rgba(247, 240, 221, 0.55);
  font-size: 0.78rem;
  font-weight: 600;
}

#wbx-powered-by-slot { margin-top: 12px; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 460px) {
  .vip-row { flex-direction: column; }
  .carte-inner { padding: 28px 22px 24px; }
}
