/* ===================================================
   Blue Sky Buffet-Pizzeria — Stylesheet (2026 redesign)
   Palette is taken from the logo: blue, white, paper grey.
   =================================================== */

:root {
  --blue:        #00438c; /* logo, middle of the gradient */
  --blue-top:    #003a7e; /* logo, top edge: header bar so the logo blends in */
  --blue-deep:   #002b5c;
  --blue-bottom: #004c97; /* lower end of the category-tile gradient (top is --blue-top) */
  --blue-paper:  #144276; /* header photo's paper after its blue tint: hero background on phones, so the photo blends in */
  /* Same blues as R G B channels, for see-through shadows/overlays: rgb(var(--blue-deep-rgb) / 0.3).
     Keep these in sync with the hex values above. */
  --blue-rgb:      0 67 140;  /* = --blue */
  --blue-deep-rgb: 0 43 92;   /* = --blue-deep */
  /* Hidden ("behind") lines inside the category icons: must match the middle of the tile gradient
     so they vanish into the tile. If the tile colours change, change this too. */
  --icon-knockout: #00458e;
  --sky:         #e8eff8;
  --sky-strong:  #dde6f2;
  --sky-text:    #a9c4e8; /* small labels on dark blue */
  --paper:       #f4f4f2;
  --white:       #ffffff;
  --ink:         #0f1b2d;
  --ink-soft:    #3e485b;
  --muted:       #5a6475;
  --line:        #e6e9ee;
  --tomato:      #a8351f;
  --tomato-bg:   #fbe9e5;
  --open:        #1e7a45;
  --open-on-dark: #5fd68f; /* status dot on the blue header */

  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --header-h: 64px;
  --radius:    20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06);
  --shadow:    0 1px 2px rgba(15, 27, 45, 0.06), 0 8px 24px rgba(15, 27, 45, 0.06);
  --shadow-lg: 0 10px 30px rgb(var(--blue-deep-rgb) / 0.3);
  --gutter: 16px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
ul { list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Typography ---------- */
.display,
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 1rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: 16px;
  border: 0;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-deep); color: var(--white); }

.btn--light { background: var(--white); color: var(--blue); }
.btn--light:hover { background: var(--sky); color: var(--blue-deep); }

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.24); color: var(--white); }

.btn--soft { background: var(--sky); color: var(--blue); }
.btn--soft:hover { background: var(--sky-strong); color: var(--blue-deep); }

/* ---------- Status chip ----------
   Information, not a button: translucent on the blue header, so it doesn't compete with
   the solid call/menu buttons next to it (which share one shape: 44px, radius 12). */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.status__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sky-text);
}

.status--open .status__dot { background: var(--open-on-dark); box-shadow: 0 0 0 3px rgb(95 214 143 / 0.22); }
.status--closed .status__dot { background: var(--tomato); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  transition: background-color 0.25s, box-shadow 0.25s;
}

.site-header--solid,
.site-header--scrolled {
  background: var(--blue-top);
  box-shadow: 0 2px 12px rgb(var(--blue-deep-rgb) / 0.25);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.site-header__brand:hover { color: var(--white); }

.site-header__logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgb(var(--blue-deep-rgb) / 0.35);
}

.site-header__name {
  display: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}

.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  width: 44px; height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  position: absolute;
  top: calc(var(--header-h) + 8px);
  left: var(--gutter);
  right: var(--gutter);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgb(var(--blue-deep-rgb) / 0.22);
  padding: 8px;
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.site-nav--open { opacity: 1; transform: none; visibility: visible; }

.site-nav__list { display: flex; flex-direction: column; }

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
}

.site-nav__link:hover { background: var(--sky); color: var(--blue); }
.site-nav__link--active,
.site-nav__link--phone { color: var(--blue); }

/* Mobile: round call button next to the menu toggle, always visible in the sticky header */
.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue);
}
.header-phone .icon { width: 20px; height: 20px; margin: 0; }
.header-phone__num {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 359px) {
  .status__more { display: none; }
  .hero__hours { display: none; } /* the header chip already shows open/closed */
  .hero__actions .btn { padding: 0 1rem; white-space: nowrap; }
  .site-header__actions { gap: 6px; }
  .status { padding: 0 10px; gap: 5px; font-size: 0.75rem; }
}
.status__short { display: none; }
/* "Zatvoreno · otvaramo u 08:00" is too long for a phone header */
@media (max-width: 479px) {
  .status__long { display: none; }
  .status__short { display: inline; }
}
.site-header__brand { flex-shrink: 0; }

@media (min-width: 900px) {
  :root { --header-h: 76px; --gutter: 32px; }

  .site-header__name { display: inline; }
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    opacity: 1;
    transform: none;
    visibility: visible;
    background: none;
    box-shadow: none;
    padding: 0;
    margin-left: 24px;
  }

  .site-nav__list { flex-direction: row; gap: 4px; }

  .site-nav__link {
    min-height: 44px;
    color: var(--white);
    font-size: 0.95rem;
  }

  .site-nav__link:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
  /* Current page: same rounded hover shape as the other links, with a short underline inside it */
  .site-nav__link--active { position: relative; color: var(--white); }
  .site-nav__link--active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--sky-text);
  }
  .site-nav__item--phone { display: none; }

  .header-phone {
    width: auto;
    min-height: 44px;
    padding: 0 18px;
    gap: 8px;
    border-radius: 12px;
    font-size: 0.95rem;
  }
  .header-phone .icon { width: 18px; height: 18px; }
  .header-phone__num { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  background: var(--blue-paper); /* matches the tinted photo, so it melts in with no colour step */
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  /* Phones: show the whole logo across the top instead of a blown-up slice of the pizza,
     and fade its bottom edge into the hero blue */
  background: url('../assets/images/blue_sky_header.jpg') center top / 125% auto no-repeat;
  top: var(--header-h); /* start below the header so its chips don't sit on the logo */
  bottom: auto;
  height: 60vw; /* = image height at 125% width (1600x769) */
  /* fade both edges so the photo melts into the flat blue behind the header and the text */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 60%, transparent);
}

/* The header photo is grey embossed paper; tint it with the logo blue */
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue);
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.hero__content {
  position: relative;
  width: 100%;
  /* Room for the header plus the logo image; the text starts just under the wordmark */
  padding: calc(var(--header-h) + 56vw) var(--gutter) 28px;
  background: linear-gradient(to top, rgb(var(--blue-deep-rgb) / 0.96) 30%, rgb(var(--blue-deep-rgb) / 0) 60%);
}

.hero .eyebrow { color: var(--sky-text); }

/* Free delivery: pill above the hero eyebrow (tap = call to order) */
.delivery-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue-deep);
  font-size: 0.85rem;
  font-weight: 700;
}
.delivery-pill:hover { background: var(--white); color: var(--blue-deep); }
.delivery-pill .icon { width: 18px; height: 18px; }

.hero__title {
  font-size: clamp(2.4rem, 10vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.hero__title-sub { display: block; margin-top: 0.3em; font-size: 0.5em; line-height: 1.1; letter-spacing: -0.01em; color: var(--sky-text); }

.hero__info { color: rgba(255, 255, 255, 0.88); margin-bottom: 1.25rem; }
.hero__info a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.hero__actions { display: flex; gap: 10px; }
.hero__actions .btn--light { flex: 1; }
.hero__actions .btn { white-space: nowrap; }
/* Next to "Kako do nas" the long label only fits on wider phones */
.label-short { display: none; }
@media (max-width: 419px) {
  .label-long { display: none; }
  .label-short { display: inline; }
}


@media (min-width: 900px) {
  .hero-wrap {
    padding: calc(var(--header-h) + 24px) 0 0;
    background: var(--blue-top);
    border-radius: 0 0 40px 40px;
  }

  .hero {
    min-height: 0;
    border-radius: 0;
    background: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gutter) 56px;
    overflow: visible;
  }

  .hero__content { padding: 0; background: none; }

  .hero__media {
    position: relative;
    top: auto;
    order: 2;
    background-position: center 30%;
    background-size: cover;
    -webkit-mask-image: none;
    mask-image: none;
    height: 520px;
    border-radius: 36px;
    overflow: hidden;
  }

  .hero__media-wrap { position: relative; order: 2; }

  .hero__actions .btn--light { flex: none; }


}

/* ---------- Sections ---------- */
.section { padding: 40px 0 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head .section-title { margin-bottom: 0; }
.section-head a { font-weight: 600; padding: 12px 0; white-space: nowrap; }

@media (min-width: 900px) {
  .section { padding-top: 72px; }
}

/* Horizontal scroller (tiles, cards) */
.scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter); /* snap items to the gutter, not the screen edge */
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 2px var(--gutter) 8px;
}

.scroller::-webkit-scrollbar { display: none; }

/* "There's more this way": fade the edge that still has content behind it (js/main.js sets the
   classes). Together with the half-visible next item this reads as swipeable without arrows. */
@media (max-width: 899px) {
  .scroller, .chips {
    --fade-l: 0px;
    --fade-r: 0px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
            mask-image: linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
  }
  .has-more-left { --fade-l: 28px; }
  .has-more-right { --fade-r: 56px; }
}
.scroller > * { scroll-snap-align: start; }

/* Category tiles */
.cat-tile {
  flex: none;
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

/* Same look as the logo: white line art on the logo's blue gradient */
.cat-tile__mark {
  width: 76px; height: 76px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--blue-top), var(--blue-bottom));
  box-shadow: 0 4px 12px rgb(var(--blue-rgb) / 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cat-tile__mark svg { width: 40px; height: 40px; }

.cat-tile:hover { color: var(--blue); }
.cat-tile__mark .ko-fill { fill: var(--icon-knockout); }
.cat-tile__mark .ko-line { stroke: var(--icon-knockout); }
.cat-tile:hover .cat-tile__mark { transform: translateY(-2px); box-shadow: 0 8px 18px rgb(var(--blue-rgb) / 0.3); }

@media (min-width: 900px) {
  .cats .scroller {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .cat-tile {
    width: auto;
    flex-direction: row;
    gap: 14px;
    padding: 12px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
    text-align: left;
  }

  .cat-tile__mark { width: 52px; height: 52px; border-radius: 16px; box-shadow: none; }
  .cat-tile__mark svg { width: 30px; height: 30px; }
}

/* Dish cards (homepage) */
.dish-card {
  flex: none;
  width: 250px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.dish-card__name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.dish-card__desc { font-size: 0.875rem; color: var(--muted); margin-bottom: 14px; flex: 1; }
.dish-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dish-card__price { font-weight: 700; color: var(--blue); }

@media (min-width: 900px) {
  .popular .scroller {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .dish-card { width: auto; }
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--sky);
  color: var(--blue);
  white-space: nowrap;
}

.tag--new { background: var(--tomato-bg); color: var(--tomato); }

/* Buffet feature */
.feature {
  border-radius: var(--radius-lg);
  background: var(--blue-deep);
  color: var(--white);
  padding: 28px 22px;
}

.feature .eyebrow { color: var(--sky-text); }
.feature p { color: rgba(255, 255, 255, 0.85); margin-bottom: 1.25rem; max-width: 560px; }

/* The two ways to get your food: naming both makes it clear there's no third (eating in) */
.ways { display: grid; gap: 10px; margin: 4px 0 14px; padding: 0; list-style: none; }
.ways li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}
.ways__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}
.ways__icon .icon { width: 20px; height: 20px; }
.ways strong { display: block; font-weight: 700; color: var(--white); }
.ways strong + span { display: block; font-size: 0.9rem; color: var(--sky-text); }
.feature .feature__note { font-size: 0.9rem; color: var(--sky-text); }

@media (min-width: 900px) {
  .feature {
    padding: 56px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: center;
  }

  .feature p { margin-bottom: 0; }
  .ways { grid-template-columns: 1fr 1fr; max-width: 560px; }
  .feature__actions { justify-self: end; }
}

/* About */
.about p { color: var(--ink-soft); max-width: 680px; margin-bottom: 1rem; }
.about__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.about__facts li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Visit */
.visit { display: grid; gap: 16px; }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card__body { padding: 22px 20px; }

.card__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: -4px 0 12px;
  color: var(--blue);
  font-weight: 600;
}
.card__note .icon { width: 18px; height: 18px; flex: none; margin-top: 3px; }

.card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.map { display: block; width: 100%; height: 240px; border: 0; }
.map--off {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: var(--blue);
  font: inherit;
  /* a faint street grid, so the placeholder reads as "a map goes here" */
  background:
    linear-gradient(90deg, rgb(var(--blue-rgb) / 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgb(var(--blue-rgb) / 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--sky);
}
.map--off .icon { width: 30px; height: 30px; }
.map__label { font-weight: 700; font-size: 1rem; }
.map__note { font-size: 0.8rem; color: var(--muted); }
.map--off:hover .map__label { text-decoration: underline; text-underline-offset: 3px; }

.info-row { display: flex; gap: 10px; margin-bottom: 10px; color: var(--ink-soft); }
.info-row svg { color: var(--blue); margin-top: 2px; }

.btn-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
.scroller[hidden] { display: none; }
.btn-row .btn { min-height: 48px; padding: 0 12px; border-radius: 14px; font-size: 0.95rem; }

.hours { display: flex; flex-direction: column; gap: 2px; }
.hours__time { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--ink); letter-spacing: -0.01em; }
.hours__days { color: var(--ink-soft); }
.hours__now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
}
.hours__now[hidden] { display: none; }
.hours__now::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--open); }
.hours__now--closed { background: var(--tomato-bg); color: var(--tomato); }
.hours__now--closed::before { background: var(--tomato); }

.phone-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.phone-list li:last-child a { border-bottom: 0; }
.phone-list a:hover { color: var(--blue); }
.phone-list svg { color: var(--blue); }

@media (min-width: 900px) {
  .visit { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
  .map { height: 280px; }
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 56px;
  padding: 32px 0 calc(110px + env(safe-area-inset-bottom));
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer__brand strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); }
.footer a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 11px 0; }
.footer a:hover { color: var(--sky-text); }
.footer p { margin-bottom: 4px; }
.footer .container.footer__legal {
  display: block;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}
.footer .footer__legal a { padding: 6px 0; color: rgba(255, 255, 255, 0.85); }

/* ---------- Company details page (podaci-o-tvrtki/) ---------- */
.legal { max-width: 820px; padding-top: 40px; padding-bottom: 80px; }
.legal__lede { color: var(--ink-soft); margin-bottom: 20px; }
.legal__list {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 0 32px;
  padding: 8px 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.legal__list dt { padding-top: 14px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.legal__list dd { margin: 2px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.legal__list dd:last-child { border-bottom: 0; }
.legal__h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.legal p { color: var(--ink-soft); margin-bottom: 0.9rem; }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 640px) {
  .legal__list { grid-template-columns: 180px 1fr; column-gap: 24px; }
  .legal__list dt { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .legal__list dd { padding-top: 14px; margin: 0; }
  .legal__list dt:nth-last-of-type(1) { border-bottom: 0; }
}

@media (min-width: 900px) {
  .footer { padding-bottom: 40px; margin-top: 80px; }
  .footer .container { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
}

/* ---------- Floating action bar (mobile) ---------- */
.action-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 950;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
  height: 56px;
  padding: 5px;
  border-radius: 20px;
  background: rgb(var(--blue-deep-rgb) / 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .2s ease;
}

.action-bar--hidden {
  transform: translateY(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
}

.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 15px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}

.action-bar a:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.action-bar .action-bar__primary { background: var(--white); color: var(--blue); font-weight: 700; }
.action-bar .action-bar__primary:hover { background: var(--sky); color: var(--blue-deep); }
.action-bar svg { width: 18px; height: 18px; }

@media (min-width: 900px) {
  .action-bar { display: none; }
}

/* ===================================================
   Menu page
   =================================================== */
.page-title {
  font-size: clamp(1.9rem, 6vw, 3rem);
  padding: calc(var(--header-h) + 20px) 0 8px;
}

.page-lede {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 4px;
  color: var(--blue);
  font-weight: 600;
}
.page-lede a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.page-lede .icon { width: 18px; height: 18px; flex: none; margin-top: 3px; }

.menu-top {
  position: sticky;
  top: var(--header-h);
  z-index: 900;
  background: var(--paper);
  padding-top: 8px;
  box-shadow: 0 1px 0 var(--line);
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  /* A sideways swipe settles on a chip; "center" matches where the bar centres the active chip,
     and "proximity" only snaps when you stop near a chip, so it never fights you */
  scroll-snap-type: x proximity;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 12px;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  scroll-snap-align: center;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #d5ddea;
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip--active,
.chip--active:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

.menu-section {
  padding-top: 28px;
  scroll-margin-top: 48px; /* sticky chip bar (html scroll-padding covers the header) */
}

.menu-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.menu-section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.menu-section__subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue);
  margin: 18px 4px 10px;
}

.menu-section__note { font-size: 0.875rem; color: var(--muted); margin: -2px 4px 12px; }

.dish-list {
  background: var(--white);
  border-radius: 22px;
  padding: 0 16px;
  box-shadow: var(--shadow-sm);
}

.dish {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.dish:last-child { border-bottom: 0; }
.dish__main { flex: 1; min-width: 0; }

.dish__name {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.dish__desc { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }

.dish__price {
  flex: none;
  text-align: right;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

.price--na { color: var(--muted); font-size: 0.85rem; font-weight: 600; }

/* Pizza: both sizes are shown until the script picks one */
.price-size { display: block; }
.price-size::before { content: attr(data-label) ' '; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.menu-section[data-size] .price-size::before { content: none; }
.menu-section[data-size] .price-size { display: none; }
.menu-section[data-size="mala"] .price-size[data-size="mala"],
.menu-section[data-size="velika"] .price-size[data-size="velika"],
.menu-section[data-size="jumbo"] .price-size[data-size="jumbo"] { display: block; }

.size-toggle {
  display: none;
  padding: 4px;
  border-radius: 14px;
  background: #e1e9f4;
}

.menu-section[data-size] .size-toggle { display: inline-flex; }

.size-toggle button {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.size-toggle button[aria-checked="true"] {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(15, 27, 45, 0.15);
}

.sides-grid {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border-radius: 22px;
  padding: 4px 16px;
  box-shadow: var(--shadow-sm);
}

.sides-grid__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

/* Anchor price ("sidrena cijena", NN 101/2026): price on the reference date, under each price */
.anchor-price {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.sale-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--tomato-bg);
  color: var(--tomato);
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}
.dish-card__price .anchor-price { margin-top: 1px; }

.sides-grid__price { font-weight: 700; color: var(--blue); white-space: nowrap; }


.menu-note { font-size: 0.875rem; color: var(--muted); margin-top: 28px; }


@media (min-width: 640px) {
  .sides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

@media (min-width: 900px) {
  .menu-narrow { max-width: 820px; }
  .menu-section { scroll-margin-top: 100px; }
  .chips { flex-wrap: wrap; overflow: visible; margin: 12px 0 0; padding: 0 0 12px; }
  .chip { height: 36px; padding: 0 14px; }
  .dish { padding: 16px 0; }
  .dish__name { font-size: 1.05rem; }
}

/* ---------- Page-to-page transition (homepage <-> menu) ---------- */
/* Same-site navigations animate instead of flashing; unsupported browsers just load normally. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation-duration: .3s; }
::view-transition-old(root) { animation: vt-out .16s ease-in both; }
::view-transition-new(root) { animation: vt-in .34s cubic-bezier(.2, .7, .2, 1) .06s both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(28px); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  @view-transition { navigation: none; }
}
