:root {
  --bg: #16110d;
  --bg2: #1f1812;
  --card: #251d16;
  --line: #3a2e23;
  --cream: #f3e6cf;
  --muted: #b5a48c;
  --fire: #e0782f;
  --fire2: #f2a541;
  --green: #1f3b2d;
  --swish: #4cb26b;
  --paper: #efe4d0;
  --ink: #1d1712;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
@media (max-width: 760px) { html { scroll-padding-top: 150px; } }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font: 16px/1.55 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: Cinzel, Georgia, serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .02em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--fire2); font-weight: 600; margin: 0 0 .6em; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; margin: 0 0 24px; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px;
  padding: 10px 16px 0;
  background: rgba(22, 17, 13, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo b { font-family: Cinzel, serif; font-size: 1.45rem; letter-spacing: .14em; display: block; line-height: 1; }
.logo small { display: block; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.flame { width: 28px; height: 28px; fill: var(--fire); filter: drop-shadow(0 0 6px rgba(224, 120, 47, .6)); animation: flicker 2.4s infinite; transform-origin: 50% 90%; }
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.06, .96) rotate(-2deg); }
  60% { transform: scale(.97, 1.05) rotate(2deg); }
}
.mainnav { display: flex; gap: 22px; margin-left: auto; }
.mainnav a { text-decoration: none; font-size: .92rem; color: var(--muted); }
.mainnav a:hover { color: var(--cream); }
.cartbtn {
  position: relative; margin-left: 8px;
  background: var(--fire); color: var(--ink); border: 0; border-radius: 999px;
  display: flex; align-items: center; gap: 6px; padding: 8px 14px; font-weight: 700; cursor: pointer;
}
.cartbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cartbtn.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.18); } }
@media (max-width: 760px) {
  .cartbtn { margin-left: auto; order: 2; }
  .mainnav {
    order: 3; flex-basis: 100%; margin: 8px -16px 0; padding: 4px 16px 8px;
    gap: 8px; overflow-x: auto; scrollbar-width: none;
  }
  .mainnav::-webkit-scrollbar { display: none; }
  .mainnav a {
    flex: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
    color: var(--cream); font-size: .88rem;
  }
}

/* Fire status */
.firebar {
  order: 4; flex-basis: 100%; margin: 10px -16px 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 7px 16px; font-size: .88rem; text-align: center;
  background: #120d0a; border-bottom: 1px solid var(--line); color: var(--muted);
}
.firebar.lit { background: linear-gradient(90deg, #3a1a08, #5a2a0c, #3a1a08); color: #ffe2bf; }
.ember { width: 10px; height: 10px; border-radius: 50%; background: #5b4a3a; flex: none; }
.firebar.lit .ember { background: var(--fire2); box-shadow: 0 0 10px 3px var(--fire); animation: glow 1.2s infinite alternate; }
@keyframes glow { to { box-shadow: 0 0 16px 6px #ff6a00; } }

/* Hero */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,17,13,.15) 0%, rgba(22,17,13,.55) 45%, rgba(22,17,13,.97) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 48px 16px; width: 100%; }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); max-width: 14ch; }
.lead { font-size: 1.1rem; max-width: 46ch; color: #e8dac2; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 700; text-decoration: none;
  border: 0; cursor: pointer; font-size: 1rem; font-family: inherit;
  transition: transform .15s, filter .15s;
}
.btn:active { transform: scale(.97); }
.btn:hover { filter: brightness(1.08); }
.btn-fire { background: var(--fire); color: var(--ink); }
.btn-ghost { background: rgba(243, 230, 207, .08); color: var(--cream); border: 1px solid rgba(243, 230, 207, .35); }
.btn-ghost-dark { background: transparent; color: var(--ink); border: 1px solid #b9a98f; width: 100%; margin-top: 10px; }
.btn-swish { background: var(--swish); color: #fff; width: 100%; font-size: 1.05rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* After school */
.afterschool { background: radial-gradient(circle at 20% 0%, #3b2a1a 0%, var(--bg2) 60%); padding: 64px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.as-grid > *, .beach-grid > *, .pub-grid > *, .find-grid > * { min-width: 0; }
.as-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.marker { font-family: "Permanent Marker", cursive; font-weight: 400; letter-spacing: .02em; color: var(--paper); }
h2.marker { font-size: clamp(2.6rem, 7vw, 4.4rem); transform: rotate(-2deg); margin-bottom: .2em; }
.marker.small { font-size: 1.1rem; color: var(--fire2); margin: 0; }
.as-lead { max-width: 44ch; color: #e8dac2; }
.as-status { font-weight: 600; color: var(--fire2); }
.as-poster { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.5); transform: rotate(1.5deg); }
.as-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.ticket {
  background: var(--paper); color: var(--ink); border-radius: 6px; padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 6px;
}
.ticket:nth-child(odd) { transform: rotate(-1deg); }
.ticket:nth-child(even) { transform: rotate(1deg); }
.ticket b { font-family: "Permanent Marker", cursive; font-weight: 400; font-size: 1.05rem; }
.ticket .price { font-family: "Permanent Marker", cursive; font-size: 1.4rem; }
.ticket .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ticket select { font: inherit; font-size: 16px; padding: 6px; border-radius: 6px; border: 1px solid #c6b493; background: #fff; width: 100%; }
.add {
  background: var(--ink); color: var(--paper); border: 0; border-radius: 8px;
  padding: 8px 12px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap;
}
.add:active { transform: scale(.95); }
@media (max-width: 820px) {
  .as-grid { grid-template-columns: 1fr; }
  .as-poster { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .afterschool { padding: 44px 0; }
  .as-items { gap: 10px; }
  .ticket { padding: 12px; }
  .ticket .row { flex-direction: column; align-items: stretch; }
  .ticket .add { padding: 10px; }
}

/* Menu */
.menu { padding: 64px 16px; }
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.tab {
  background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font: 600 .92rem Inter, sans-serif; cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s, border-color .2s;
}
.item:hover { transform: translateY(-3px); border-color: #5a4633; }
.item .photo { width: 150px; height: 150px; margin: 0 auto 4px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 26px rgba(0,0,0,.55); }
.item .photo.wide { width: 100%; height: 140px; border-radius: 10px; }
.item h3 { font-size: 1.15rem; margin: 0; }
.item p { margin: 0; color: var(--muted); font-size: .9rem; flex: 1; }
.item .tag { align-self: flex-start; justify-self: start; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--fire2); border: 1px solid #6b4423; border-radius: 999px; padding: 2px 8px; }
.item select { font: inherit; font-size: 16px; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); color: var(--cream); }
.item .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.item .price { font-weight: 700; font-size: 1.1rem; }
.item .add { background: var(--fire); color: var(--ink); padding: 11px 16px; }
@media (max-width: 560px) {
  .menu { padding: 44px 16px; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 20px; padding: 0 16px; scrollbar-width: none; }
  .tab { flex: none; padding: 10px 18px; }
  /* kompakta rader i stället för stora kort på mobil */
  .menu-grid { grid-template-columns: 1fr; gap: 12px; }
  .item { display: grid; grid-template-columns: 92px 1fr; gap: 6px 14px; padding: 14px; }
  .item .photo, .item .photo.wide { grid-row: span 4; width: 92px; height: 92px; margin: 0; border-radius: 50%; }
  .item .photo.wide { border-radius: 12px; }
  .item > :not(.photo) { grid-column: 2; }
  .item:not(:has(.photo)) { grid-template-columns: 1fr; }
  .item:not(:has(.photo)) > * { grid-column: 1; }
  .item h3 { font-size: 1.05rem; }
  .item p { font-size: .85rem; }
}

/* Beach */
.beach { background: #13202a; padding: 64px 0; }
.beach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.beach-grid img { border-radius: var(--radius); }
.beach h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.beach-buy { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.beach-buy strong { font-size: 1.6rem; }

/* Pub */
.pub { padding: 64px 0; background: linear-gradient(180deg, var(--bg) 0%, #24150b 100%); }
.pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.pub-grid img { border-radius: var(--radius); box-shadow: 0 0 60px rgba(224, 120, 47, .25); }
.pub h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.hours { list-style: none; padding: 0; margin: 16px 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.hours li.today { color: var(--fire2); font-weight: 700; }
@media (max-width: 820px) {
  .beach-grid, .pub-grid { grid-template-columns: 1fr; }
}

/* Find */
.find { padding: 64px 16px; }
.find-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 1.2rem; }
@media (max-width: 760px) { .find-grid { grid-template-columns: 1fr; } }

.footer { text-align: center; padding: 40px 16px 60px; border-top: 1px solid var(--line); }
.logo-text { font-family: Cinzel, serif; font-size: 1.8rem; letter-spacing: .25em; margin: 0; }

/* Drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 50; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 51;
  width: min(440px, 100%); background: var(--paper); color: var(--ink);
  transform: translateX(105%); transition: transform .3s ease;
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #d6c7ad; }
.drawer-head h2 { margin: 0; font-size: 1.3rem; }
.iconbtn { background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: var(--ink); padding: 6px; }
.drawer-body { overflow-y: auto; padding: 16px 18px 28px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid #d6c7ad; }
.line .name { font-weight: 600; }
.line .opt { font-size: .82rem; color: #6c5c47; grid-column: 1; }
.qty { display: flex; align-items: center; gap: 8px; grid-column: 1; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #b9a98f; background: #fff; cursor: pointer; font-weight: 700; }
.line .lp { grid-row: 1; grid-column: 2; font-weight: 700; }
.empty { text-align: center; color: #6c5c47; padding: 26px 0; }

.delivery { border: 0; padding: 0; margin: 18px 0 8px; display: grid; gap: 8px; }
.delivery legend { font-weight: 700; margin-bottom: 8px; }
.radio { display: flex; align-items: center; gap: 10px; border: 1px solid #c6b493; border-radius: 10px; padding: 10px 12px; cursor: pointer; background: #fff8ec; }
.radio:has(input:checked) { border-color: var(--fire); box-shadow: 0 0 0 2px rgba(224, 120, 47, .3); }
.radio span { display: flex; justify-content: space-between; flex: 1; }
.radio small { color: #6c5c47; }
.field { display: grid; gap: 4px; margin-top: 12px; font-size: .9rem; font-weight: 600; }
.field input, .field select {
  font: 400 1rem Inter, sans-serif; padding: 10px 12px; border-radius: 8px;
  border: 1px solid #c6b493; background: #fff; color: var(--ink); width: 100%;
}
.beach .field select { background: var(--bg2); color: var(--cream); border-color: var(--line); }
.check { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: .9rem; }
.totals { margin: 18px 0 10px; border-top: 2px solid var(--ink); padding-top: 10px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .grand { font-weight: 800; font-size: 1.15rem; }
.formerr { color: #b3261e; font-weight: 600; min-height: 1.2em; margin: 4px 0 10px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { background: var(--paper); color: var(--ink); border-radius: 18px; padding: 24px; width: min(400px, 100%); text-align: center; max-height: 92vh; overflow-y: auto; }
.modal-card .kicker { color: #9a5a22; }
.qr { display: flex; justify-content: center; margin: 12px auto 16px; padding: 10px; background: #fff; border-radius: 12px; width: max-content; }
.swishinfo { margin: 0 0 16px; text-align: left; }
.swishinfo div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #d6c7ad; }
.swishinfo dt { color: #6c5c47; }
.swishinfo dd { margin: 0; font-weight: 700; }
.done-flame { font-size: 3.4rem; animation: flicker 1.6s infinite; }

.cartbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 15px 18px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--fire); color: var(--ink); font: 600 1rem Inter, sans-serif;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  padding-bottom: calc(15px + env(safe-area-inset-bottom) * .5);
}
.cartbar[hidden] { display: none; }
@media (min-width: 761px) { .cartbar { left: auto; width: 360px; } }
body.has-cart .footer { padding-bottom: 110px; }

.toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 70;
  transform: translate(-50%, 120px); transition: transform .3s;
  background: var(--cream); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
@media (max-width: 480px) {
  .firebar { font-size: .78rem; padding: 6px 12px; }
}
.as-note { color: #6c5c47; margin: 6px 0 0; }
