/* Gossens Pizzeria — gossens.se
   Handskriven CSS, inga ramverk. */

:root {
  --cream:      #fdf6e6;
  --paper:      #ffffff;
  --yellow:     #f7dd97;
  --yellow-dim: #f1e3bd;
  --blue:       #0d5f96;
  --blue-mid:   #1a86ce;
  --blue-soft:  #e6f1fa;
  --ink:        #1c1a15;
  --muted:      #6d6555;
  --line:       #e6dcc4;

  /* Höjden på den fasta listen — chipsraden fäster precis under den */
  --topbar-h: 71px;

  --wrap: 1180px;
  --r:    14px;
  --shadow: 0 1px 2px rgba(28,26,21,.06), 0 8px 24px -12px rgba(28,26,21,.22);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 9.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue); color: #fff; padding: .75rem 1.25rem; z-index: 100;
}
.skip:focus { left: 0; }

:where(a, button):focus-visible {
  outline: 3px solid var(--blue-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Knappar ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.4rem;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--blue); color: #fff;
  font: inherit; font-weight: 600; text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--blue-mid); border-color: var(--blue-mid); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; }

.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }

.btn--lg { padding: .95rem 1.9rem; font-size: 1.1rem; }
.btn--sm { padding: .45rem 1rem; font-size: .92rem; border-width: 2px; }

/* ── Topbar ───────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(253, 246, 230, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* Loggan är vit text på transparent — mörkas ner för den ljusa listen */
.topbar__brand img { width: 148px; filter: brightness(0); opacity: .85; }
.topbar__nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem); }
.topbar__nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.topbar__nav a:not(.btn):hover { color: var(--blue); }
@media (max-width: 520px) {
  :root { --topbar-h: 61px; }
  .topbar__nav a:not(.btn) { display: none; }
  .topbar__brand img { width: 120px; }
}

/* ── Hero ─────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,8,4,.82) 0%, rgba(10,8,4,.55) 45%, rgba(10,8,4,.88) 100%);
}
.hero__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(3.5rem, 11vw, 7.5rem) clamp(1rem, 5vw, 2rem) clamp(3rem, 9vw, 6rem);
  text-align: center; color: #fff;
}
.hero__logo {
  width: min(430px, 78vw); margin-inline: auto;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,.55));
}
.hero__tagline {
  margin: 1.3rem 0 0;
  font-size: clamp(.85rem, 2.4vw, 1rem);
  letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  color: #ffe9ae;
}
.hero__where { margin: .9rem 0 0; font-size: clamp(1rem, 2.6vw, 1.2rem); color: #f2ece0; }
.hero__where span { display: inline-block; }
.hero__status {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 1.1rem 0 0; padding: .3rem .95rem;
  border-radius: 999px; font-size: .92rem; font-weight: 600;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
}
.hero__status::before {
  content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: currentColor;
}
.hero__status.is-open   { color: #8ff0a8; }
.hero__status.is-closed { color: #ffc4a3; }
.hero__actions {
  display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center;
  margin-top: 2.2rem;
}
.hero__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero__actions .btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }

/* ── Snabbfakta ───────────────────────────────────────── */
.facts {
  max-width: var(--wrap); margin: -2.5rem auto 0;
  position: relative; z-index: 2;
  padding-inline: clamp(1rem, 5vw, 2rem);
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.fact {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
}
.fact h2 {
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
  margin-bottom: .5rem;
}
.fact p { margin: 0; color: var(--muted); }
.fact strong { color: var(--ink); font-size: 1.15rem; }
.fact--accent { background: var(--yellow); border-color: #e8c86d; }
.fact--accent h2 { color: #8a5f00; }
.fact--accent p, .fact--accent strong { color: #3b2c00; }
.fact a { color: inherit; }

/* ── Meny ─────────────────────────────────────────────── */
.menu {
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 5vw, 2rem) 1rem;
}
.menu__head { text-align: center; max-width: 46rem; margin-inline: auto; }
.menu__head h2 { font-size: clamp(2rem, 6vw, 2.9rem); }
.menu__head h2::after {
  content: ""; display: block; width: 68px; height: 4px; border-radius: 2px;
  background: var(--blue-mid); margin: .9rem auto 0;
}
.menu__lead { color: var(--muted); margin: 1.1rem 0 1.4rem; }

.chips {
  position: sticky; top: var(--topbar-h); z-index: 30;
  display: flex; gap: .5rem; overflow-x: auto;
  margin: 2rem 0 2.5rem;
  padding: 1.4rem 0 1.1rem;
  background: linear-gradient(var(--cream) 70%, rgba(253,246,230,0));
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none;
  padding: .4rem 1rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap;
}
.chips a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.group {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 2.5rem 0 .35rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--yellow);
}
.group__note { margin: 0 0 1.4rem; color: var(--muted); font-size: .95rem; }
.group + .cats { margin-top: 1.4rem; }

.cats { columns: 2; column-gap: 2rem; }
@media (max-width: 800px) { .cats { columns: 1; } }

/* Grupper med bara en kategori tar hela bredden och delar upp raderna i stället */
.cats:has(> .cat:only-child) { columns: 1; }
.cat:only-child .items { columns: 2; column-gap: 2.5rem; }
.cat:only-child .items li { break-inside: avoid; }
@media (max-width: 800px) { .cat:only-child .items { columns: 1; } }

.cat {
  break-inside: avoid;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.4rem 1.5rem 1.1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.cat > header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: .65rem; margin-bottom: .8rem;
  border-bottom: 2px solid var(--yellow);
}
.cat h4 { font-size: 1.3rem; color: var(--blue); }
/* Kort utan egen rubrik (gruppen namnger dem redan) */
.header--price { justify-content: flex-end; }
.price-all {
  margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: #7a5400; background: var(--yellow); padding: .2rem .7rem; border-radius: 999px;
  white-space: nowrap;
}

.items { list-style: none; margin: 0; padding: 0; counter-reset: item; }
.items li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 1.9rem 1fr auto;
  align-items: baseline;
  gap: 0 .4rem;
  padding: .42rem 0;
  border-bottom: 1px dotted var(--yellow-dim);
}
.items li:last-child { border-bottom: 0; }
.items li::before {
  content: counter(item) ".";
  color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums;
}
.items b {
  grid-column: 2; font-weight: 700;
}
.items i {
  grid-column: 2; grid-row: 2;
  font-style: normal; color: var(--muted); font-size: .93rem;
}
.items span {
  grid-column: 3; grid-row: 1;
  font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.items span::after { content: ":-"; font-weight: 500; color: var(--muted); }

/* Bred layout: namn + beskrivning på samma rad när det får plats */
@media (min-width: 480px) {
  .items li { grid-template-columns: 1.9rem auto 1fr auto; }
  .items b { grid-column: 2; }
  .items i { grid-column: 3; grid-row: 1; }
  .items i::before { content: "· "; }
  .items span { grid-column: 4; }
}

.menu__foot {
  text-align: center; color: var(--muted); font-size: .95rem;
  margin: 1.5rem 0 0;
}

/* ── Hitta hit ────────────────────────────────────────── */
.find {
  max-width: var(--wrap); margin: clamp(3rem, 8vw, 5rem) auto 0;
  padding: 0 clamp(1rem, 5vw, 2rem);
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(260px, 380px) 1fr;
  align-items: start;
}
@media (max-width: 780px) { .find { grid-template-columns: 1fr; } }
.find h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 1rem; }
.find p { color: var(--muted); }
.find__addr { font-size: 1.25rem; color: var(--ink) !important; font-weight: 600; }
.find__links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.find__photo {
  margin-top: 2rem; border-radius: var(--r); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.find__map iframe {
  width: 100%; height: min(560px, 70vh); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); background: var(--yellow-dim);
}

/* ── Footer ───────────────────────────────────────────── */
.foot {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding: 3rem clamp(1rem, 5vw, 2rem);
  background: #17222b; color: #cdd6dd; text-align: center;
}
.foot p { margin: .25rem 0; }
.foot a { color: #8fd0f5; }
.foot__name { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin-bottom: .6rem !important; }
.foot__year { margin-top: 1.5rem !important; font-size: .85rem; color: #7d8a94; }

/* ── Lightbox ─────────────────────────────────────────── */
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: min(900px, 94vw); max-height: 94vh;
  overflow: auto;
}
.lightbox::backdrop { background: rgba(12, 10, 6, .88); }
.lightbox img { border-radius: 8px; width: 100%; }
.lightbox__close {
  position: sticky; top: 0; left: 100%;
  width: 2.6rem; height: 2.6rem; margin-bottom: -2.6rem;
  border: 0; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer; z-index: 2;
}
.lightbox__hint { text-align: center; padding: .75rem 0 .25rem; }
.lightbox__hint a { color: #ffe9ae; }
