/* BRØD deli. Colours from the shop's own menu board and logo: oxblood, cream
   and powder blue, with the kraft paper of the trays. */
@font-face {
  font-family: "Honey Basil";
  src: url("../fonts/HoneyBasil-Regular.52d6a0e460e2.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Custardo";
  src: url("../fonts/Custardo-Regular.47f738df62f7.otf") format("opentype");
  font-display: swap;
}

:root {
  --red: #6b1410;
  --red-deep: #4c0d0a;
  --cream: #fbefdf;
  --cream-2: #f4e2c9;
  --blue: #a9c6e4;
  --blue-soft: #dce8f4;
  --kraft: #e6cfae;
  --muted: #8a4a3f;
  --radius: 22px;
  --shadow: 6px 6px 0 var(--red);
  /* Titan One for headings: chunky like the logo, with č, ć, š, ž and đ.
     Honey Basil and Custardo (the shop's fonts) have no Serbian letters, so
     they only set short ASCII bits: handwritten notes and prices. */
  --display: "Titan One", "Arial Rounded MT Bold", sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --hand: "Honey Basil", "Comic Sans MS", cursive;
  --chunk: "Custardo", var(--display);
  --wrap: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--red);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red); color: var(--cream); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 0.5em; }
h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; }
.hand { font-family: var(--hand); font-weight: 400; letter-spacing: 0.02em; }
.chunk { font-family: var(--chunk); font-weight: 400; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--red); color: var(--cream); border: 2px solid var(--red);
  font: 400 1.05rem/1.2 var(--display); letter-spacing: 0.02em; text-decoration: none;
  box-shadow: 4px 4px 0 var(--blue); cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--blue); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--blue); }
.btn-small { padding: 9px 18px; font-size: 0.95rem; box-shadow: 3px 3px 0 var(--blue); }
.btn-cream { background: var(--cream); color: var(--red); border-color: var(--cream); box-shadow: 4px 4px 0 var(--blue); }
.btn-outline { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: none; }
.btn-outline:hover { background: var(--cream); color: var(--red); box-shadow: none; }
.link-arrow { font-family: var(--display); text-decoration: none; border-bottom: 2px solid currentColor; }
.link-arrow::after { content: " →"; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h); padding: 0 24px;
  background: var(--cream); border-bottom: 2px solid var(--red);
}
.brand { display: block; width: 104px; color: var(--red); flex-shrink: 0; }
.brand svg { display: block; width: 100%; height: auto; }
.open-status {
  margin: 0; padding: 5px 12px 5px 28px; position: relative;
  border: 2px solid var(--red); border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  white-space: nowrap;
}
.open-status::before {
  content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px;
  margin-top: -4.5px; border-radius: 50%; background: var(--muted);
}
.open-status.is-open::before { background: #3f8f4e; box-shadow: 0 0 0 3px rgba(63, 143, 78, 0.22); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { background: var(--red); color: var(--cream); }
.site-nav .lang a { font-size: 0.85rem; letter-spacing: 0.08em; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { background: var(--red); color: var(--cream); padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-logo { margin: 0; color: var(--cream); }
.hero-logo svg { width: 100%; max-width: 560px; height: auto; display: block; }
.hero-hand { color: var(--blue); font-size: clamp(1.2rem, 0.9rem + 1vw, 1.7rem); margin: 22px 0 18px; }
.hero-lead { font-size: 1.3rem; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover;
  border-radius: var(--radius); border: 3px solid var(--cream);
  transform: rotate(2deg); box-shadow: 10px 10px 0 var(--red-deep);
}
.sticker {
  position: absolute; left: -46px; bottom: -40px; width: 150px; height: 150px;
  animation: spin 22s linear infinite;
}
.sticker circle { fill: var(--blue); }
.sticker text { fill: var(--red); font: 20px var(--chunk); letter-spacing: 3.3px; }
.sticker .star { fill: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- ticker ---------- */
.ticker { background: var(--blue); border-block: 2px solid var(--red); overflow: hidden; padding: 16px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 42s linear infinite; }
.ticker-group { display: flex; }
.ticker-group span { font: 400 1.35rem var(--display); white-space: nowrap; padding: 0 22px; }
.ticker-group span::after { content: "✺"; margin-left: 44px; font-size: 1rem; vertical-align: 0.15em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- idea ---------- */
.idea-head { max-width: 820px; margin-bottom: 60px; }
.idea-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff8ee; border: 2px solid var(--red); border-radius: var(--radius);
  padding: 30px 28px 24px; box-shadow: var(--shadow);
}
.card:nth-child(2) { background: var(--blue-soft); transform: translateY(26px); }
.card-num { display: inline-block; font-size: 2.6rem; line-height: 1; margin-bottom: 18px; color: var(--red); }
.card h3 { font-size: 1.5rem; }
.card p { margin: 0; }

/* ---------- sandwiches ---------- */
.sandwiches { background: var(--cream-2); border-block: 2px solid var(--red); }
.sandwiches-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.sandwich-photo { position: sticky; top: calc(var(--header-h) + 32px); }
.sandwich-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px var(--radius) var(--radius);
  border: 3px solid var(--red); transition: opacity 0.25s ease;
}
.sandwich-photo img.swapping { opacity: 0.3; }
.sandwich-list > ul { list-style: none; margin: 34px 0 36px; padding: 0; border-top: 2px solid var(--red); }
.sandwich { padding: 20px 14px 18px; border-bottom: 2px dashed rgba(107, 20, 16, 0.35); border-radius: 14px; transition: background 0.2s ease; outline: none; }
.sandwich:hover, .sandwich:focus-visible, .sandwich.active { background: #fff8ee; }
.sandwich-head { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; }
.sandwich h3 { margin: 0 0 4px; font-size: 1.45rem; }
.sandwich p { margin: 0; color: var(--muted); }
.price {
  flex-shrink: 0; background: var(--red); color: var(--cream); border-radius: 999px;
  padding: 4px 13px 2px; font-size: 1.15rem; letter-spacing: 0.03em;
}
.tag {
  display: inline-block; font-size: 0.9rem; background: var(--blue); color: var(--red);
  padding: 1px 9px; border-radius: 999px; transform: rotate(-4deg); vertical-align: 0.2em;
}

/* ---------- breakfast ---------- */
.breakfast { background: var(--blue); }
.breakfast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.breakfast-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.breakfast-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--cream); border: 2px solid var(--red); border-radius: 999px;
  padding: 10px 10px 10px 22px; font-weight: 600; font-size: 1.05rem;
}
.breakfast-photos { position: relative; height: 560px; }
.breakfast-photos img {
  position: absolute; width: 62%; aspect-ratio: 2 / 3; object-fit: cover;
  border: 3px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow);
}
.tilt-left { left: 0; top: 0; transform: rotate(-4deg); }
.tilt-right { right: 0; bottom: 0; transform: rotate(3deg); }

/* ---------- the place ---------- */
.place { background: var(--kraft); overflow: hidden; }
.place-head { max-width: 720px; margin-bottom: 44px; }
.strip {
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 20px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 34px; scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}
.g-item { flex: 0 0 auto; scroll-snap-align: center; display: block; }
.strip .g-item {
  background: #fffaf2; padding: 12px 12px 34px; border-radius: 6px;
  box-shadow: 0 10px 24px rgba(76, 13, 10, 0.18); transform: rotate(-2deg);
  transition: transform 0.25s ease;
}
.strip .g-item:nth-child(even) { transform: rotate(2.2deg) translateY(14px); }
.strip .g-item:nth-child(3n) { transform: rotate(-0.8deg); }
.strip .g-item:hover { transform: rotate(0) scale(1.03); }
.strip img { height: 380px; width: auto; aspect-ratio: auto; object-fit: cover; border-radius: 3px; }

/* ---------- group orders ---------- */
.orders { background: var(--red); color: var(--cream); }
.orders-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.orders .link-arrow { color: var(--blue); }
.inquiry {
  background: var(--cream); color: var(--red); border-radius: var(--radius);
  padding: 34px; box-shadow: 10px 10px 0 var(--blue); display: grid; gap: 16px;
}
.inquiry label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.inquiry input, .inquiry textarea {
  width: 100%; font: 400 1rem var(--body); color: var(--red);
  background: #fffaf2; border: 2px solid var(--red); border-radius: 12px; padding: 11px 14px;
}
.inquiry input:focus, .inquiry textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--blue); }
.inquiry textarea { resize: vertical; }
.inquiry .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inquiry .row-3 { grid-template-columns: 1fr 1fr 1fr; }
.inquiry .btn { justify-self: start; }
.error { color: #b3261e; font-weight: 600; }
.fine { margin: 0; font-size: 0.85rem; color: var(--muted); }
.form-message { margin: 0; padding: 14px 18px; border-radius: 14px; background: var(--blue-soft); font-weight: 600; }
.form-message.error { background: #f7d9d4; }
.hp { position: absolute; left: -9999px; }

/* ---------- visit ---------- */
.visit-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: stretch; }
.visit-card {
  background: #fff8ee; border: 2px solid var(--red); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.visit-address { font: 400 1.5rem/1.25 var(--display); }
.hours { width: 100%; border-collapse: collapse; margin: 10px 0 24px; }
.hours th, .hours td { text-align: left; padding: 9px 10px; border-bottom: 2px dashed rgba(107, 20, 16, 0.3); }
.hours th { font-weight: 600; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { background: var(--blue); }
.hours tr.today th { border-radius: 10px 0 0 10px; }
.hours tr.today td { border-radius: 0 10px 10px 0; }
.visit-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-weight: 600; }
.visit-links a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.map { border: 3px solid var(--red); border-radius: var(--radius); overflow: hidden; min-height: 420px; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: sepia(0.25) saturate(0.9); }

/* ---------- footer ---------- */
.site-footer { background: var(--red); color: var(--cream); padding: 80px 0 0; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-label { font-family: var(--display); color: var(--blue); margin-bottom: 8px; }
.site-footer a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer-logo { display: block; color: var(--cream); padding: 70px 24px 0; max-width: 1400px; margin: 0 auto; }
.footer-logo svg { width: 100%; height: auto; display: block; margin-bottom: -4%; }
.copy { position: relative; text-align: center; font-size: 0.8rem; margin: 0; padding: 14px 0 18px; background: var(--red-deep); }
.quick-bar { display: none; }

/* ---------- menu page ---------- */
.menu-hero { background: var(--red); color: var(--cream); padding: 70px 0 120px; }
.menu-hero h1 { font-size: clamp(3rem, 2rem + 5vw, 6rem); margin: 0; }
.menu-intro { font-size: 1.2rem; }
.menu-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.menu-nav a {
  text-decoration: none; border: 2px solid var(--cream); border-radius: 999px;
  padding: 7px 16px; font-weight: 600;
}
.menu-nav a:hover { background: var(--cream); color: var(--red); }
.menu-board { margin-top: -80px; display: grid; gap: 40px; padding-bottom: 90px; }
.menu-category { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.menu-category.with-photos { grid-template-columns: 1.4fr 1fr; }
.menu-card {
  background: #fff8ee; border: 2px solid var(--red); border-radius: var(--radius);
  padding: 34px 34px 22px; box-shadow: var(--shadow);
}
.menu-card h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin-bottom: 10px; }
.menu-card h2 span { background: var(--blue); padding: 4px 18px; border-radius: 14px; display: inline-block; }
.menu-note { color: var(--muted); font-weight: 600; }
.menu-items { list-style: none; margin: 10px 0 0; padding: 0; }
.menu-items li { padding: 14px 0; border-top: 2px dashed rgba(107, 20, 16, 0.3); }
.menu-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; }
.menu-items h3 { margin: 0; font-size: 1.2rem; }
.menu-items p { margin: 4px 0 0; color: var(--muted); }
.price-ask { font-family: var(--body); font-weight: 600; font-size: 0.85rem; }
.menu-photos { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.menu-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 3px solid var(--red); }
.menu-notes { background: var(--blue); padding: 80px 0; }
.notes-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 30px; }
.notes-grid h2 { margin-bottom: 0.25em; }
.notes-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.menu-notes .btn-cream { box-shadow: 4px 4px 0 var(--red); }
.menu-notes .btn-outline { color: var(--red); border-color: var(--red); }
.menu-notes .btn-outline:hover { background: var(--red); color: var(--cream); }
.allergy { margin-top: 34px; font-weight: 600; }

/* ---------- lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(76, 13, 10, 0.92); }
.lightbox img { max-width: 94vw; max-height: 92vh; object-fit: contain; border-radius: 12px; }
.lightbox-close {
  position: fixed; top: 16px; right: 20px; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--red); background: var(--cream); color: var(--red); font-size: 1.8rem; line-height: 1; cursor: pointer;
}

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1.2); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .card.reveal.visible:nth-child(2) { transform: translateY(26px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .sticker, .ticker-track { animation: none; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .nav-toggle {
    display: grid; gap: 6px; place-content: center; width: 46px; height: 46px;
    border: 2px solid var(--red); border-radius: 50%; background: transparent; cursor: pointer;
  }
  .nav-toggle .bar { display: block; width: 20px; height: 2.5px; background: var(--red); border-radius: 2px; transition: transform 0.2s ease; }
  .site-nav.open .bar:first-of-type { transform: translateY(4.25px) rotate(45deg); }
  .site-nav.open .bar:last-of-type { transform: translateY(-4.25px) rotate(-45deg); }
  .site-nav ul {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 18px 24px 26px;
    background: var(--cream); border-bottom: 2px solid var(--red);
    transform: translateY(-120%); visibility: hidden; transition: transform 0.25s ease, visibility 0.25s;
  }
  .site-nav.open ul { transform: none; visibility: visible; }
  .site-nav a:not(.btn) { font-size: 1.15rem; padding: 10px 14px; }
  .site-nav .btn { text-align: center; margin-top: 8px; }
}

@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .hero { padding: 48px 0 80px; }
  .hero-grid, .sandwiches-grid, .breakfast-grid, .orders-grid, .visit-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-photo { margin: 0 12px; }
  .sticker { left: auto; right: -18px; bottom: -44px; width: 120px; height: 120px; }
  .idea-cards { grid-template-columns: 1fr; }
  .card:nth-child(2), .js .card.reveal.visible:nth-child(2) { transform: none; }
  .sandwich-photo { position: relative; top: 0; max-width: 420px; }
  .sandwich-photo img { aspect-ratio: 1; }
  .breakfast-photos { height: 460px; max-width: 520px; }
  .menu-category.with-photos { grid-template-columns: 1fr; }
  .menu-photos { position: static; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; padding-bottom: 64px; }
  .wrap { padding: 0 16px; }
  .site-header { padding: 0 16px; gap: 12px; }
  .brand { width: 84px; }
  .open-status { font-size: 0.75rem; padding: 4px 10px 4px 24px; white-space: normal; line-height: 1.2; }
  .open-status::before { left: 9px; }
  .hero-lead { font-size: 1.12rem; }
  .strip { padding-left: 16px; padding-right: 16px; gap: 18px; }
  .strip img { height: 300px; }
  .inquiry { padding: 22px; }
  .inquiry .row, .inquiry .row-3 { grid-template-columns: 1fr; }
  .visit-card { padding: 26px 22px; }
  .menu-card { padding: 24px 20px 14px; }
  .breakfast-photos { height: 380px; }
  .footer-grid { grid-template-columns: 1fr; }
  .quick-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    border-top: 2px solid var(--red);
  }
  .quick-bar a {
    text-align: center; padding: 16px 8px calc(16px + env(safe-area-inset-bottom));
    font: 400 1.05rem var(--display); text-decoration: none; background: var(--cream); color: var(--red);
  }
  .quick-bar a:last-child { background: var(--red); color: var(--cream); }
}
