/* ═══════════════════════════════════════════════════════════
   STREFA SMAKU restobar · Jelenia Góra
   Tablica kredowa · trawiasta zieleń marki · Gloock + Hanken Grotesk
   + Comfortaa (logo) + Dancing Script (odręczne akcenty)
   ═══════════════════════════════════════════════════════════ */

:root {
  /* kolory (zieleń z materiałów marki: plakaty + logo restobar) */
  --bg:         oklch(0.13 0.005 130);
  --surface:    oklch(0.17 0.008 130);
  --surface-2:  oklch(0.21 0.01 130);
  --ink:        oklch(0.95 0.008 130);
  --muted:      oklch(0.76 0.015 130);
  --brand:      oklch(0.75 0.17 128);
  --brand-neon: oklch(0.77 0.2 142);
  --brand-dim:  oklch(0.63 0.13 128);
  --brand-deep: oklch(0.3 0.06 130);
  --on-brand:   oklch(0.16 0.03 130);
  --accent:     oklch(0.8 0.15 130);
  --line:       oklch(1 0 0 / 0.12);

  /* typografia */
  --font-display: "Gloock", "Georgia", serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-logo: "Comfortaa", "Segoe UI", sans-serif;
  --font-script: "Dancing Script", "Segoe Script", cursive;

  /* rytm */
  --space-section: clamp(5rem, 11vw, 9.5rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --container: 1180px;

  /* ruch */
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);

  /* warstwy */
  --z-marquee: 2;
  --z-nav: 10;
  --z-skip: 20;
}

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  /* czarna tablica kredowa: winieta + delikatny ślad przetarcia */
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, oklch(1 0 0 / 0.03), transparent 60%),
    radial-gradient(ellipse 140% 100% at 50% 100%, oklch(0 0 0 / 0.5), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }

::selection { background: var(--brand); color: var(--on-brand); }

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

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: var(--z-skip);
  padding: 0.6rem 1rem;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; }

/* ── typografia sekcji ── */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section-title--xl { font-size: clamp(2.5rem, 5.6vw, 4.25rem); }

/* ── odręczny akcent (jak na plakatach: „Zapraszamy!") ── */
.script {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  color: var(--brand);
  margin-bottom: 0.35rem;
}
.script::after {
  content: "";
  display: block;
  width: 5.5em;
  height: 0.16em;
  margin-top: 0.1em;
  border-radius: 999px;
  background: var(--brand);
  opacity: 0.55;
  transform: rotate(-1.2deg);
}

/* ── przyciski ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.35s var(--ease-out), background-color 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }

.btn--brand {
  background: var(--brand);
  color: var(--on-brand);
}
.btn--brand:hover { background: oklch(0.82 0.18 128); color: var(--on-brand); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: oklch(0.12 0 0 / 0.35);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ═══════════ NAWIGACJA ═══════════ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: oklch(0.12 0 0 / 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}
.nav__brand-icon {
  width: 36px;
  height: 36px;
  color: var(--brand-neon);
  flex-shrink: 0;
}
.nav__brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav__brand-text small {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: lowercase;
  color: var(--brand-neon);
}

.nav__links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin-inline: auto;
}
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.25s var(--ease-out);
}
.nav__links a:hover { color: var(--brand); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.nav__cta:hover { border-color: var(--brand); color: var(--brand); }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav { justify-content: space-between; }
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(6rem, 14vh, 9rem) var(--gutter) 5.5rem;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, oklch(0.1 0 0 / 0.62), oklch(0.12 0 0 / 0.45) 45%, var(--bg) 98%),
    radial-gradient(ellipse at 50% 42%, transparent 30%, oklch(0.1 0 0 / 0.55));
}

.hero__inner {
  max-width: 880px;
  text-align: center;
}

.hero__logo {
  display: block;
  width: clamp(190px, 24vw, 260px);
  aspect-ratio: 380 / 175;
  margin: 0 auto clamp(1.25rem, 3vh, 2rem);
  filter: drop-shadow(0 8px 28px oklch(0 0 0 / 0.55));
}

.hero__rating {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.75rem;
}
.hero__stars { color: var(--brand); letter-spacing: 0.18em; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.9rem, 9.2vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.hero__line { display: block; overflow: hidden; padding-block: 0.06em; }
.hero__line > span { display: block; }
.hero__line--accent > span { color: var(--brand); }

.hero__lead {
  max-width: 56ch;
  margin: 1.75rem auto 2.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--brand), transparent);
}

/* animacja wejścia hero (tylko gdy działa JS) */
.js .hero__line > span {
  animation: hero-rise 1.1s var(--ease-out) both;
}
.js .hero__line:nth-child(2) > span { animation-delay: 0.14s; }
.js .hero__logo { animation: hero-fade 1.1s var(--ease-out) 0.1s both; }
.js .hero__rating,
.js .hero__lead,
.js .hero__actions {
  animation: hero-fade 1s var(--ease-out) 0.5s both;
}
.js .hero__actions { animation-delay: 0.65s; }
.js .hero__media img {
  animation: hero-zoom 2.6s var(--ease-out) both;
}

@keyframes hero-rise { from { transform: translateY(112%); } to { transform: translateY(0); } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }

/* ═══════════ TAŚMA ═══════════ */
.marquee {
  position: relative;
  z-index: var(--z-marquee);
  background: var(--brand);
  color: var(--on-brand);
  transform: rotate(-1.1deg) scale(1.02);
  overflow: hidden;
  padding: 0.85rem 0;
  margin-block: -1rem 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  width: max-content;
  font-family: var(--font-display);
  font-size: 1.2rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee__leaf { width: 1rem; height: 1rem; opacity: 0.8; flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════ O NAS ═══════════ */
.about {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-section) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.about__media { position: relative; }
.about__media > img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: 6px;
}
/* mini-tablica kredowa, jak na plakatach */
.about__quote {
  position: absolute;
  right: clamp(-1.25rem, -2vw, -2rem);
  bottom: clamp(1.5rem, 4vw, 3rem);
  max-width: min(19rem, 78%);
  background: oklch(0.15 0.008 130 / 0.96);
  border: 1.5px solid var(--brand);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 5px oklch(0.15 0.008 130 / 0.96),
    inset 0 0 0 6px oklch(1 0 0 / 0.35),
    0 24px 48px oklch(0 0 0 / 0.5);
  padding: 1.5rem 1.6rem 1.25rem;
  text-align: center;
}
.about__quote blockquote {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--ink);
}
.about__quote-heart {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.5rem;
  color: var(--brand);
}

.about__body > p { color: var(--muted); max-width: 58ch; }
.about__body > p:first-of-type { margin-top: 1.5rem; color: var(--ink); }
.about__body > p + p { margin-top: 1rem; }

.about__perks {
  margin-top: 2.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.5rem;
  font-weight: 600;
  font-size: 0.98rem;
}
.about__perks li { display: flex; align-items: center; gap: 0.6rem; }
.about__perks li::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  background: var(--brand);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 20C4 9.5 9.5 4 20 4c0 10.5-5.5 16-16 16Z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 20C4 9.5 9.5 4 20 4c0 10.5-5.5 16-16 16Z"/></svg>') center / contain no-repeat;
}

@media (max-width: 880px) {
  .about { grid-template-columns: 1fr; }
  .about__media > img { aspect-ratio: 16 / 11; }
  .about__quote { right: 1rem; bottom: -1.25rem; }
  .about__body { margin-top: 1.5rem; }
}

/* ═══════════ MENU ═══════════ */
.menu {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-section) var(--gutter);
}

.menu__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.menu__note { max-width: 44ch; color: var(--muted); font-size: 0.98rem; }

.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.menu__photo {
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
}
.menu__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.menu__col:hover .menu__photo img { transform: scale(1.045); }

.menu__cat {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  margin: 1.5rem 0 0.4rem;
  color: var(--brand);
}

.menu__list {
  list-style: none;
  padding: 0;
}
.menu__list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.menu__list li:last-child { border-bottom: 0; }
.menu__list strong {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  transition: color 0.3s var(--ease-out);
}
.menu__list li:hover strong { color: var(--brand); }
.menu__list span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.15rem;
}

.menu__cta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* ═══════════ GALERIA ═══════════ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gallery figure { overflow: hidden; }
.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.gallery figure:hover img { transform: scale(1.05); }

/* ═══════════ OPINIE ═══════════ */
.reviews {
  background:
    radial-gradient(ellipse 70% 90% at 20% 50%, oklch(0.3 0.06 130 / 0.5), transparent),
    var(--surface);
  border-block: 1px solid var(--line);
}
.reviews__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-section) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.reviews__score {
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 9.5rem);
  line-height: 0.95;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.reviews__score span {
  font-size: 0.35em;
  color: var(--muted);
  letter-spacing: 0;
}

.reviews__body { max-width: 46ch; }
.reviews__stars { color: var(--brand); letter-spacing: 0.22em; margin-bottom: 0.5rem; }
.reviews__body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
}
.reviews__body p { margin-top: 0.9rem; color: var(--muted); }

.link-arrow {
  display: inline-block;
  margin-top: 1.4rem;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid oklch(0.75 0.17 128 / 0.4);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease-out);
}
.link-arrow:hover { border-color: var(--brand); color: var(--brand); }
.link-arrow span { display: inline-block; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover span { transform: translateX(4px); }

/* ═══════════ KONTAKT ═══════════ */
.contact {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-section) var(--gutter);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact__address {
  font-style: normal;
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 1.75rem;
}

.contact__phone {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--brand);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.3s var(--ease-out);
}
.contact__phone:hover { color: oklch(0.82 0.18 128); }

.contact__mail {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact__social {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.contact__social a {
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.contact__social a:hover { border-color: var(--brand); color: var(--brand); }

.contact__hours {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.contact__hours h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.contact__hours dl { margin: 0; }
.contact__hours dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.contact__hours dl > div:last-of-type { border-bottom: 0; }
.contact__hours dt { color: var(--muted); }
/* godziny podkreślone „pociągnięciem pędzla", jak na plakatach */
.contact__hours dd {
  margin: 0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--brand);
  color: var(--on-brand);
  padding: 0.05em 0.6em;
  border-radius: 0.7em 0.4em 0.65em 0.35em / 0.5em 0.7em 0.4em 0.65em;
  transform: rotate(-1.2deg);
}
.contact__hours dd.is-closed {
  background: none;
  color: var(--muted);
  font-weight: 500;
  transform: none;
  padding: 0.05em 0;
}

.contact__hours-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 880px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ═══════════ STOPKA ═══════════ */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--gutter) 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer__logo {
  width: 200px;
  aspect-ratio: 380 / 175;
  margin: 0 auto 1rem;
}
.footer__script { text-align: center; }
.footer__script::after { margin-inline: auto; }
.footer .footer__script { margin-bottom: 1.25rem; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--brand); }

/* ═══════════ SCROLL REVEAL (tylko z JS) ═══════════ */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js .reveal--left { transform: translateX(-30px); }
.js .reveal--right { transform: translateX(30px); }
.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__line > span,
  .js .hero__logo,
  .js .hero__rating,
  .js .hero__lead,
  .js .hero__actions,
  .js .hero__media img { animation: none; }
  .marquee__track { animation: none; }
  .js .reveal,
  .js .reveal--left,
  .js .reveal--right {
    opacity: 1;
    transform: none;
    transition: opacity 0.4s ease;
  }
  .btn, .menu__photo img, .gallery img, .link-arrow span { transition: none; }
  .btn:hover { transform: none; }
  .menu__col:hover .menu__photo img,
  .gallery figure:hover img { transform: none; }
}
