/* ════════════════════════════════════════════════════════════════════
   Optional sections (switched on/off in the admin panel):
   weekly lunch, special offers, careers – plus sub-page parts.
   ════════════════════════════════════════════════════════════════════ */

/* Header with more links: tighter spacing before switching to the burger menu */
@media (max-width: 1180px) and (min-width: 901px) {
  .header__nav {
    gap: 20px;
    font-size: 0.95rem;
  }
  .header__cta span {
    display: none;
  }
  .header__cta {
    padding: 11px;
  }
}
.header__nav a[aria-current='page']::after {
  scale: 1 1;
}

.preview-bar {
  position: relative;
  z-index: 60;
  padding: 8px 16px;
  background: #fdeccd;
  color: #6b4500;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}
.eyebrow__icon--still {
  animation: none;
}
.empty-note {
  max-width: 560px;
  margin: 0 auto 40px;
  padding: 28px;
  border: 1px dashed #dccbb9;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 1.05rem;
  text-align: center;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}
.footer__links {
  display: flex;
  gap: 20px;
}
.footer__links a {
  color: #fff;
  font-weight: 600;
}
.footer__links a:hover {
  color: var(--ember);
}

/* ── Sub-page hero ─────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  margin-top: -76px;
  padding: calc(76px + clamp(40px, 6vw, 80px)) 0 clamp(24px, 4vw, 48px);
  overflow: hidden;
  background:
    radial-gradient(800px 420px at 85% 0%, rgba(245, 158, 59, 0.22), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(140, 90, 50, 0.1) 1px, transparent 0) 0 0 / 26px 26px,
    var(--cream);
  text-align: center;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.page-hero__title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 1.06;
  color: var(--red-deep);
  text-wrap: balance;
}
.deco--p1 {
  top: 34%;
  left: 7%;
  width: 54px;
}
.deco--p2 {
  bottom: 14%;
  right: 8%;
  width: 60px;
  rotate: 150deg;
  animation-duration: 11s;
  animation-delay: -4s;
}
@media (max-width: 700px) {
  .deco--p1 {
    top: 18%;
    left: 4%;
    width: 38px;
  }
  .deco--p2 {
    display: none;
  }
}

/* ── Lunch ─────────────────────────────────────────────────────────── */
.lunch {
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream), var(--sand));
}
.deco--lunch {
  top: 60px;
  right: 6%;
  width: 56px;
  rotate: 25deg;
}
.lunch__time {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 600;
  color: var(--ink-soft);
}
.lunch__box .tabs {
  margin-bottom: 26px;
}
.lunch__panel {
  animation: panel-in 0.5s ease both;
}
.lunch__where {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 600;
  color: var(--ink-soft);
}
.lunch__where-icon {
  width: 20px;
  height: 20px;
  color: var(--red);
}
.lunch-today {
  position: relative;
  isolation: isolate;
  max-width: 760px;
  margin: 0 auto;
  padding: 26px clamp(18px, 3vw, 32px) 28px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 24px 50px rgba(181, 48, 28, 0.16);
}
/* animated glowing border around "today" */
.lunch-today::before {
  content: '';
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: 27px;
  background: linear-gradient(120deg, var(--ember), var(--red), var(--gold), var(--ember));
  background-size: 300% 300%;
  animation: ember-border 6s ease infinite;
}
.lunch-today::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 24px;
  background: var(--paper);
}
.lunch-today__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 16px;
}
.lunch-today__badge {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lunch-today__date {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
}
.lunch-today__empty {
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.lunch-today__list {
  display: grid;
  gap: 12px;
}
.lunch-dish {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.lunch-dish__img {
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 6px 8px rgba(60, 25, 10, 0.22));
  animation: spin 40s linear infinite;
}
.lunch-dish__img img,
.lunch-dish__img svg {
  width: 100%;
  height: 100%;
}
.lunch-dish__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lunch-dish__name {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
}
.lunch-dish__desc {
  color: var(--ink-soft);
}
.lunch-dish__price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--red);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.lunch-today__call {
  margin-top: 20px;
}
.lunch-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.lunch-day {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-align: center;
  transition:
    translate 0.3s,
    box-shadow 0.3s;
}
.fx .lunch-day[data-reveal] {
  transition:
    opacity 0.7s ease var(--d, 0ms),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms),
    translate 0.3s,
    box-shadow 0.3s;
}
.lunch-day:hover {
  translate: 0 -3px;
  box-shadow: var(--shadow-sm);
}
.lunch-day__name {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.lunch-day__date {
  font-size: 0.8rem;
  color: var(--ink-mute);
}
.lunch-day__dish {
  margin-top: 6px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.lunch-day__price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.lunch-day__none {
  margin-top: 6px;
  color: var(--ink-mute);
  font-size: 0.9rem;
}
.lunch-day__dishes,
.lunch-day__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lunch-day__dishes {
  gap: 4px;
}
.lunch-day.is-today {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 26px rgba(216, 69, 43, 0.35);
}
.lunch-day.is-today .lunch-day__name,
.lunch-day.is-today .lunch-day__date,
.lunch-day.is-today .lunch-day__price,
.lunch-day.is-today .lunch-day__none {
  color: #fff;
}
.lunch-day.is-past {
  opacity: 0.5;
}
.fx .lunch-day.is-past.is-in {
  opacity: 0.5;
}
@media (max-width: 900px) {
  .lunch-week {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* Phones: the week becomes a compact list – one short row per day */
@media (max-width: 640px) {
  .lunch-week {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
  }
  .lunch-day {
    display: grid;
    grid-template-columns: 2.4em 3.4em minmax(0, 1fr);
    align-items: center;
    gap: 0 8px;
    padding: 7px 12px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: none;
    font-size: 0.9rem;
    text-align: left;
  }
  .lunch-day:first-child {
    border-top: 0;
  }
  .lunch-day:hover {
    translate: none;
    box-shadow: none;
  }
  .lunch-day.is-today {
    border-color: var(--red);
    box-shadow: none;
  }
  .lunch-day__name {
    font-size: 0.85rem;
  }
  .lunch-day__date {
    font-size: 0.78rem;
  }
  .lunch-day__dishes {
    gap: 2px;
  }
  .lunch-day__item {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }
  .lunch-day__dish,
  .lunch-day__none {
    margin-top: 0;
  }
  .lunch-day__price {
    flex: none;
    font-size: 0.85rem;
  }
  .lunch-day__none {
    font-size: 0.85rem;
  }
}
@media (max-width: 520px) {
  .lunch-dish {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .lunch-dish__img {
    width: 56px;
    height: 56px;
  }
  .lunch-dish__price {
    grid-column: 2;
    font-size: 1.2rem;
  }
  .lunch-today__call {
    width: 100%;
  }
}

/* ── Offers ────────────────────────────────────────────────────────── */
.offers-section {
  overflow: hidden;
  background: var(--paper);
}
.offers-section .offers-grid {
  margin-bottom: 0;
}
.deco--offers {
  top: 70px;
  left: 6%;
  width: 46px;
}
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.offer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  transition:
    translate 0.3s,
    box-shadow 0.3s;
}
.fx .offer[data-reveal] {
  transition:
    opacity 0.7s ease var(--d, 0ms),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms),
    translate 0.3s,
    box-shadow 0.3s;
}
.offer:hover {
  translate: 0 -5px;
  box-shadow: var(--shadow-md);
}
.offer__img {
  position: relative;
  display: grid;
  place-items: center;
  padding: 26px 26px 18px;
  background:
    radial-gradient(circle at 50% 60%, rgba(245, 158, 59, 0.28), transparent 65%),
    var(--sand);
}
.offer__img img,
.offer__img svg {
  width: min(210px, 70%);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(60, 25, 10, 0.28));
  transition:
    rotate 1s cubic-bezier(0.2, 0.7, 0.2, 1),
    scale 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.offer:hover .offer__img img,
.offer:hover .offer__img svg {
  rotate: 40deg;
  scale: 1.06;
}
.offer__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  max-width: 70%;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 8px 18px rgba(216, 69, 43, 0.4);
  rotate: 6deg;
  animation: badge-pop 2.8s ease-in-out infinite;
}
.offer__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
}
.offer__today {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  background: #e5f3de;
  color: #2c6a20;
  font-size: 0.82rem;
  font-weight: 700;
}
.offer__today-icon {
  width: 15px;
  height: 15px;
}
.offer__title {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
}
.offer__desc {
  color: var(--ink-soft);
}
.offer__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}
.offer__prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.offer__price {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.offer__old {
  color: var(--ink-mute);
  font-size: 1.05rem;
}
.offer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.offer__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.offer__meta-icon {
  width: 16px;
  height: 16px;
  color: var(--red);
}

/* ── Careers ───────────────────────────────────────────────────────── */
.careers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 28px;
  align-items: start;
}
.jobs {
  display: grid;
  gap: 18px;
}
.job {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  transition:
    translate 0.3s,
    box-shadow 0.3s;
}
.fx .job[data-reveal] {
  transition:
    opacity 0.7s ease var(--d, 0ms),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms),
    translate 0.3s,
    box-shadow 0.3s;
}
.job:hover {
  translate: 0 -3px;
  box-shadow: var(--shadow-md);
}
.job__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
}
.job__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sand);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.chip__icon {
  width: 16px;
  height: 16px;
  color: var(--red);
}
.job__text {
  margin-top: 14px;
  color: var(--ink-soft);
}
.job__text p + p,
.job__text p + ul,
.job__text ul + p {
  margin-top: 10px;
}
.job__text ul {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.job__text li {
  position: relative;
  padding-left: 24px;
}
.job__text li::before {
  content: '';
  position: absolute;
  top: 0.55em;
  left: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(216, 69, 43, 0.15);
}
.apply {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: 22px;
  background: var(--char);
  color: #fff;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}
.apply__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(245, 158, 59, 0.18);
  color: var(--ember);
}
.apply__icon svg {
  width: 28px;
  height: 28px;
  animation: sway 4s ease-in-out infinite alternate;
}
.apply h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
}
.apply__text {
  color: rgba(255, 255, 255, 0.78);
}
.apply__btn {
  width: 100%;
}
.apply .btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  overflow-wrap: anywhere;
  white-space: normal;
}
.apply .btn--ghost:hover {
  background: #fff;
  color: var(--ink);
}
@media (max-width: 860px) {
  .careers {
    grid-template-columns: minmax(0, 1fr);
  }
  .apply {
    position: static;
  }
}

/* ── "Daugiau" dropdown in the header ─────────────────────────────── */
.nav-more {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-more__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  border: 0;
  background: none;
  font-weight: 500;
  color: inherit;
}
.nav-more__toggle.is-current,
.nav-more__toggle:hover,
.nav-more.is-open .nav-more__toggle {
  color: var(--red);
}
.nav-more__chevron {
  width: 18px;
  height: 18px;
  transition: rotate 0.25s;
}
.nav-more.is-open .nav-more__chevron {
  rotate: 180deg;
}
.nav-more__menu {
  position: absolute;
  top: calc(100% + 14px);
  right: -14px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  translate: 0 -6px;
  transition:
    opacity 0.2s,
    translate 0.2s,
    visibility 0.2s;
}
/* little bridge so the menu does not close while the mouse moves down to it */
.nav-more__menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.nav-more.is-open .nav-more__menu {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}
@media (hover: hover) and (min-width: 901px) {
  .nav-more:hover .nav-more__menu {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }
  .nav-more:hover .nav-more__chevron {
    rotate: 180deg;
  }
}
.header__nav .nav-more__menu a {
  padding: 10px 14px;
  border-radius: 10px;
  white-space: nowrap;
}
.header__nav .nav-more__menu a::after {
  display: none;
}
.header__nav .nav-more__menu a:hover,
.header__nav .nav-more__menu a[aria-current='page'] {
  background: var(--sand);
  color: var(--red);
}

/* Phone menu: no dropdown – the extra links are listed like the others */
@media (max-width: 900px) {
  .nav-more,
  .nav-more__menu {
    display: contents;
  }
  .nav-more__menu {
    visibility: visible;
  }
  .nav-more__toggle {
    display: none;
  }
  .header__nav .nav-more__menu a {
    padding: 14px 0;
    border-radius: 0;
  }
  .header__nav .nav-more__menu a:hover {
    background: none;
  }
}

@keyframes ember-border {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes badge-pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}

/* ════════════════════════════════════════════════════════════════════
   Small screens and enlarged text (phone / browser text-size settings).
   Long words wrap, numbers shrink a little instead of running off screen.
   ════════════════════════════════════════════════════════════════════ */
.hero__title,
.section__title,
.page-hero__title,
.job__title,
.place__name,
.place__district,
.lunch-today__date,
.pizza__name,
.offer__title,
.lunch-dish__name,
.lunch-day__dish,
.section__lead,
.pizza__desc {
  overflow-wrap: anywhere;
}
.offer__prices,
.lunch-day__item {
  flex-wrap: wrap;
}
.pizza__name {
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* pizza name and price: the price moves below a long name instead of out of the card */
.pizza__head {
  flex-wrap: wrap;
  row-gap: 2px;
}
/* big numbers and phone numbers never wider than the screen */
.hours td {
  font-size: min(clamp(1.5rem, 3vw, 2.15rem), 7vw);
}
.hours th {
  font-size: min(clamp(1.25rem, 2.2vw, 1.6rem), 6vw);
}
.btn--phone .nowrap,
.call-card__phone {
  font-size: min(1em, 5.4vw);
}
.call-card__phone {
  font-size: min(1.35rem, 6.2vw);
}
@media (max-width: 420px) {
  .call-card {
    gap: 12px;
    padding: 14px 16px;
  }
  .call-card__icon {
    width: 42px;
    height: 42px;
  }
  .call-card__arrow {
    display: none;
  }
}
@media (max-width: 520px) {
  .facts {
    grid-template-columns: repeat(auto-fit, minmax(min(6.5em, 100%), 1fr));
  }
}
/* the test bar may wrap onto two lines with large text; site.js keeps the
   header right below it whatever its height */
.test-bar {
  height: auto;
  min-height: var(--test-bar-h);
  padding-block: 4px;
  white-space: normal;
  flex-wrap: wrap;
  row-gap: 2px;
}

/* buttons may wrap their label on phones (only phone numbers never split) */
@media (max-width: 520px) {
  .btn {
    white-space: normal;
    text-align: center;
  }
}
.tabs__name,
.tabs__addr {
  overflow-wrap: anywhere;
}

/* tablets / phones: the header call button shows only its icon next to the burger */
@media (max-width: 900px) {
  .header__cta span {
    display: none;
  }
  .header__cta {
    padding: 11px;
  }
}

/* Header that does not fit (large text, long menu labels): site.js adds
   .is-compact and the header switches to the burger menu, same as on phones. */
.header.is-compact .header__bar {
  gap: 10px;
}
.header.is-compact .header__burger {
  display: block;
}
.header.is-compact .header__nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 8px clamp(18px, 4vw, 40px) 18px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(60, 25, 10, 0.1);
  font-size: 1.1rem;
}
.header.is-compact.is-open .header__nav {
  display: flex;
}
.header.is-compact .header__nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.header.is-compact .header__nav a::after {
  display: none;
}
.header.is-compact .nav-more,
.header.is-compact .nav-more__menu {
  display: contents;
}
.header.is-compact .nav-more__menu {
  visibility: visible;
}
.header.is-compact .nav-more__toggle {
  display: none;
}
.header.is-compact .header__nav .nav-more__menu a {
  border-radius: 0;
}
.header.is-compact .header__nav .nav-more__menu a:hover {
  background: none;
}
.header.is-compact .header__cta span {
  display: none;
}
.header.is-compact .header__cta {
  padding: 11px;
}
.chip {
  max-width: 100%;
  overflow-wrap: anywhere;
}
@media (max-width: 520px) {
  .job {
    padding: 20px 18px;
  }
  .apply {
    padding: 22px 18px;
  }
}
