/* BiteKrakow — design system.
   Klimat: krem + butelkowa zieleń, serif w nagłówkach, zaokrąglone karty. */

:root {
  --bg: #faf6f0;
  --bg-card: #ffffff;
  --ink: #22302b;
  --ink-soft: #5b6a63;
  --green: #2e544a;
  --green-dark: #22403a;
  --green-tint: #e8efe9;
  --gold: #c8a24a;
  --line: #e7ded2;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(34, 48, 43, 0.06), 0 10px 30px rgba(34, 48, 43, 0.05);
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-serif); color: var(--ink); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------- Nagłówek ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
}
.logo span { color: var(--green); }
.site-nav a {
  color: var(--ink); text-decoration: none;
  margin-left: 24px; font-size: 0.95rem; font-weight: 500;
}
.site-nav a:hover { color: var(--green); }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 56px; }
.hero p.lead {
  font-size: 1.15rem; color: var(--ink-soft);
  max-width: 560px; margin-top: 18px;
}
.hero-stats { display: flex; gap: 40px; margin-top: 40px; }
.hero-stats .stat b {
  display: block; font-family: var(--font-serif);
  font-size: 2.6rem; color: var(--green); line-height: 1;
}
.hero-stats .stat span {
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Pigułki / tagi ---------- */

.pill {
  display: inline-block;
  background: var(--green-tint); color: var(--green-dark);
  border-radius: 999px; padding: 4px 12px;
  font-size: 0.8rem; font-weight: 600;
}

/* ---------- Siatka przewodników ---------- */

.guide-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin: 32px 0 64px;
}
.guide-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.guide-card:hover { transform: translateY(-3px); }
.guide-card h3 { margin-bottom: 8px; }
.guide-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Karta lokalu ---------- */

.venue-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 28px 0;
  display: grid;
  grid-template-columns: 300px 1fr;
}
@media (max-width: 720px) {
  .venue-card { grid-template-columns: 1fr; }
  .venue-card .venue-photo { height: 210px; }
}
.venue-photo {
  background: var(--green-tint);
  min-height: 100%;
}
.venue-photo img { width: 100%; height: 100%; object-fit: cover; }

.venue-body { padding: 24px 28px; }
.venue-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.venue-head .num {
  font-family: var(--font-serif); color: var(--gold);
  font-size: 1.1rem; font-weight: 700; margin-right: 6px;
}

/* Ocena z Google */
.venue-rating {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem;
  min-height: 24px;
}
.stars { position: relative; display: inline-block; font-size: 1rem; line-height: 1; }
.stars .stars-bg { color: #ddd4c6; letter-spacing: 2px; }
.stars .stars-fill {
  position: absolute; top: 0; left: 0; overflow: hidden;
  color: var(--gold); letter-spacing: 2px; white-space: nowrap;
}
.venue-rating .count { color: var(--ink-soft); font-weight: 400; }

.venue-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  color: var(--ink-soft); font-size: 0.9rem;
  margin: 10px 0 12px;
}
.venue-desc { margin-bottom: 14px; }
.venue-note {
  border-left: 3px solid var(--gold);
  padding: 2px 0 2px 12px;
  color: var(--ink-soft); font-size: 0.95rem;
  margin-bottom: 14px;
}
.venue-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* Opinie z Google — dosypywane przez JS */
.venue-reviews { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.venue-reviews .src {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 10px;
}
.review {
  font-size: 0.92rem; color: var(--ink-soft);
  margin-bottom: 10px;
}
.review b { color: var(--ink); font-weight: 600; }

.venue-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  font-size: 0.92rem; border-radius: 999px; padding: 10px 20px;
  transition: background 0.15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border: 1.5px solid var(--green); color: var(--green); }
.btn-ghost:hover { background: var(--green-tint); }

/* ---------- Artykuł ---------- */

.article-header { padding: 56px 0 12px; }
.article-header .meta { color: var(--ink-soft); font-size: 0.9rem; margin-top: 14px; }
.article-body { padding-bottom: 72px; }
.article-body > p { max-width: 760px; margin: 16px 0; }

/* ---------- Stopka ---------- */

.site-footer {
  background: var(--green-dark); color: #cfdbd3;
  padding: 40px 0; font-size: 0.9rem; margin-top: 40px;
}
.site-footer a { color: #fff; }
.site-footer .logo { color: #fff; display: inline-block; margin-bottom: 10px; }

/* ---------- Polecajka z menu (vlogowy blok w karcie) ---------- */

.menu-pick {
  background: linear-gradient(135deg, #fdf8ec 0%, #f7efdd 100%);
  border: 1px solid #eadfc6;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex; gap: 14px; align-items: flex-start;
}
.menu-pick .score {
  flex: none;
  background: var(--green);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.05rem; font-weight: 700;
  border-radius: 10px;
  padding: 8px 10px;
  line-height: 1;
}
.menu-pick .score small { display: block; font-family: var(--font-sans); font-size: 0.6rem; font-weight: 600; opacity: 0.85; margin-top: 3px; letter-spacing: 0.06em; }
.menu-pick .what {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #9a7c33; font-weight: 700; margin-bottom: 3px;
}
.menu-pick .dish { font-weight: 600; color: var(--ink); }
.menu-pick .verdict { color: var(--ink-soft); font-size: 0.95rem; margin-top: 2px; }

/* ---------- Fancy karty ---------- */

.venue-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.venue-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(34, 48, 43, 0.08), 0 18px 44px rgba(34, 48, 43, 0.10);
}
.venue-card::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--green));
  opacity: 0; transition: opacity 0.2s ease;
}
.venue-card:hover::before { opacity: 1; }
.venue-head .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  font-size: 0.95rem;
  margin-right: 10px;
  vertical-align: middle;
}
.venue-photo { position: relative; overflow: hidden; }
.venue-photo img { transition: transform 0.4s ease; }
.venue-card:hover .venue-photo img { transform: scale(1.04); }

/* ---------- Nawigacja: aktywna zakładka ---------- */

.site-nav a { position: relative; padding-bottom: 4px; }
.site-nav a[aria-current="page"] { color: var(--green); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--gold);
}

/* ---------- Eyebrow nad H1 ---------- */

.article-header .pill { margin-bottom: 14px; display: inline-block; }

/* ---------- FAQ (details/summary, bez JS) ---------- */

.faq { margin-top: 40px; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-family: var(--font-serif); font-size: 1.3rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 14px; color: var(--ink-soft); }

/* ---------- Drobny szlif ---------- */

.btn { transition: background 0.15s ease, transform 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.hero h1 { letter-spacing: -0.01em; }
::selection { background: var(--green-tint); }

/* ================= MOBILE + HOMEPAGE 2.0 ================= */

/* ---------- Nagłówek na małych ekranach ---------- */

@media (max-width: 640px) {
  .site-header .wrap {
    height: auto; padding-top: 10px; padding-bottom: 10px;
    flex-direction: column; gap: 6px;
  }
  .site-nav { display: flex; gap: 14px; }
  .site-nav a { margin-left: 0; font-size: 0.88rem; }
  .hero { padding: 44px 0 36px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stats .stat b { font-size: 2rem; }
  .venue-body { padding: 18px 18px; }
  .venue-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .menu-pick { flex-direction: column; gap: 10px; }
  .menu-pick .score { align-self: flex-start; display: flex; align-items: baseline; gap: 4px; }
  .menu-pick .score small { margin-top: 0; }
  .venue-actions .btn { width: 100%; text-align: center; }
  .article-header { padding: 36px 0 8px; }
}

/* ---------- Hero z tłem ---------- */

.hero {
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.55; pointer-events: none;
}
.hero::before {
  width: 480px; height: 480px; right: -140px; top: -160px;
  background: radial-gradient(circle, #dcead9 0%, transparent 70%);
}
.hero::after {
  width: 380px; height: 380px; right: 180px; bottom: -220px;
  background: radial-gradient(circle, #f3e3bd 0%, transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }

/* Gotowy slot na grafikę od Mikołaja: wrzuć plik site/img/hero.jpg
   (ok. 1600px szerokości, do 300 KB) i odkomentuj w index.html
   klasę hero-photo na sekcji hero. */
.hero.hero-photo {
  background: linear-gradient(90deg, rgba(250,246,240,0.96) 0%, rgba(250,246,240,0.75) 45%, rgba(250,246,240,0.2) 100%),
              url("/img/hero.jpg") right center / cover no-repeat;
}
.hero.hero-photo::before, .hero.hero-photo::after { display: none; }

.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Pasek wartości ---------- */

.values {
  background: var(--green-dark);
  color: #e9f0eb;
  padding: 44px 0;
  margin: 24px 0 0;
}
.values .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.values h3 { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.values p { font-size: 0.93rem; color: #c3d2c8; }
.values .val-num {
  font-family: var(--font-serif); color: var(--gold);
  font-size: 1.6rem; display: block; margin-bottom: 8px;
}

/* ---------- Teasery z przewodników ---------- */

.teasers { padding: 56px 0 8px; }
.teaser-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-top: 24px;
}
.teaser {
  background: linear-gradient(135deg, #fdf8ec 0%, #f6eedb 100%);
  border: 1px solid #eadfc6;
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none; color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.teaser:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.teaser .t-what {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #9a7c33; font-weight: 700; margin-bottom: 8px;
}
.teaser blockquote {
  font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.45;
  margin-bottom: 12px;
}
.teaser .t-src { color: var(--ink-soft); font-size: 0.9rem; }
.teaser .t-src b { color: var(--green); }

/* ---------- Dzielnice ---------- */

.districts { padding: 40px 0 64px; }
.district-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.district-chips a, .district-chips span {
  border-radius: 999px; padding: 9px 18px; font-size: 0.92rem; font-weight: 600;
  text-decoration: none;
}
.district-chips a { background: var(--green); color: #fff; }
.district-chips a:hover { background: var(--green-dark); }
.district-chips span { background: #efe8db; color: var(--ink-soft); }
.district-chips span small { opacity: 0.7; font-weight: 500; }

/* ---------- Stopka z nawigacją ---------- */

.site-footer .foot-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0; }
.site-footer .foot-nav a { color: #e9f0eb; text-decoration: none; font-size: 0.9rem; }
.site-footer .foot-nav a:hover { text-decoration: underline; }

/* ---------- Sekcje: rytm ---------- */

section h2 + p.section-lead { color: var(--ink-soft); max-width: 620px; margin-top: 8px; }

/* ================= KARTY KOMPAKTOWE + NARRACJA ================= */

/* Nagłówek lokalu w tekście artykułu */
.venue-h {
  display: flex; align-items: center; gap: 12px;
  margin: 44px 0 10px;
}
.venue-h .vnum {
  font-family: var(--font-serif); color: var(--gold);
  font-size: 1rem; font-weight: 700;
  border: 1.5px solid var(--gold); border-radius: 50%;
  width: 32px; height: 32px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Karta: mniejsza, spokojniejsza */
.article-body .venue-card {
  grid-template-columns: 220px 1fr;
  max-width: 760px;
  margin: 18px auto 26px;
  box-shadow: 0 1px 6px rgba(34,48,43,0.05);
}
.article-body .venue-card:hover { transform: none; box-shadow: var(--shadow); }
.article-body .venue-photo { max-height: 240px; }
.article-body .venue-body { padding: 16px 20px; }
.article-body .venue-head { gap: 10px; }
.article-body .venue-head h3 { font-size: 1.05rem; }
.article-body .venue-head .num { display: none; }
.article-body .venue-rating { font-size: 0.88rem; min-height: 20px; }
.article-body .venue-meta { font-size: 0.85rem; margin: 6px 0 10px; gap: 6px 14px; }
.article-body .menu-pick { padding: 10px 14px; margin-bottom: 10px; gap: 10px; }
.article-body .menu-pick .score { font-size: 0.95rem; padding: 6px 8px; border-radius: 8px; }
.article-body .menu-pick .what { font-size: 0.68rem; margin-bottom: 1px; }
.article-body .menu-pick .dish { font-size: 0.93rem; }
.article-body .menu-pick .verdict { font-size: 0.85rem; }
.article-body .venue-tags { gap: 6px; margin-bottom: 10px; }
.article-body .venue-tags .pill { font-size: 0.72rem; padding: 3px 10px; }
.article-body .venue-reviews { padding-top: 10px; }
.article-body .venue-reviews .review { font-size: 0.85rem; margin-bottom: 8px; }
.article-body .venue-reviews .src { font-size: 0.68rem; margin-bottom: 6px; }
.article-body .venue-actions { margin-top: 10px; gap: 8px; }
.article-body .venue-actions .btn { font-size: 0.83rem; padding: 8px 16px; }
.article-body .venue-note { font-size: 0.88rem; margin-bottom: 10px; }

@media (max-width: 720px) {
  .article-body .venue-card { grid-template-columns: 1fr; }
  .article-body .venue-photo { height: 170px; max-height: 170px; }
  .article-body .venue-actions .btn { width: auto; flex: 1; }
}

/* Proza artykułu: równy rytm */
.article-body .prose { max-width: 760px; margin-left: auto; margin-right: auto; }
.article-body .prose p { margin: 14px 0; }
.article-body .prose h2 { margin-top: 44px; }

/* ================= PASS WIZUALNY: precyzja + charakter ================= */

/* Cyfry w kółkach: Playfair ma przesunięty baseline, wyrównujemy optycznie */
.venue-h .vnum, .venue-head .num {
  line-height: 1;
  padding-top: 2px;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.menu-pick .score { line-height: 1; display: flex; align-items: baseline; gap: 3px; }
.menu-pick .score small { margin-top: 0; }

/* Akcent w hero: jedno słowo kursywą i złotem */
.hero h1 em {
  font-style: italic;
  color: var(--green);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute; left: 2%; right: 2%; bottom: 0.04em;
  height: 0.12em;
  background: linear-gradient(90deg, var(--gold), #e6cc8a);
  border-radius: 2px;
  z-index: -1;
  opacity: 0.65;
}

/* Nagłówki sekcji: eyebrow + złota kreska */
.eyebrow {
  display: block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
h2.deco { position: relative; padding-bottom: 12px; }
h2.deco::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 52px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* Karty przewodników: złoty akcent na hover, strzałka czytania */
.guide-card { position: relative; overflow: hidden; }
.guide-card::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--green));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
a.guide-card:hover::after { transform: scaleX(1); }
a.guide-card h3 { transition: color 0.15s ease; }
a.guide-card:hover h3 { color: var(--green); }

/* Przyciski: głębia */
.btn-primary { box-shadow: 0 2px 8px rgba(46, 84, 74, 0.25); }
.btn-primary:hover { box-shadow: 0 4px 14px rgba(46, 84, 74, 0.35); }

/* Delikatne wejścia przy scrollu (tylko nowoczesne przeglądarki, bez JS) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .venue-card, .guide-card, .teaser, .values .wrap > div {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 32%;
    }
  }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Dostępność: wyraźny focus */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Stopka: złoty logotyp span */
.site-footer .logo span { color: var(--gold); }

/* FAQ: plus idealnie w pionie */
.faq summary::after { line-height: 1; margin-top: -0.05em; }

/* ================= ESTETYKA 2.0: Fraunces + Space Grotesk ================= */

:root {
  --font-serif: "Fraunces", Georgia, serif;
  --font-mono: "Space Grotesk", "SF Mono", monospace;
  --radius: 18px;
}

/* Numery: koniec kółek, nowoczesny znacznik ze złotą kreską */
.venue-h .vnum, .venue-head .num {
  border: none; border-radius: 0;
  width: auto; height: auto; padding: 0;
  font-family: var(--font-mono);
  font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 10px;
}
.venue-h .vnum::after {
  content: "";
  width: 30px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.values .val-num {
  font-family: var(--font-mono);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.14em;
}
.values .val-num::before { content: "/ "; opacity: 0.6; }

/* Etykiety techniczne w Space Grotesk */
.eyebrow, .hero-stats .stat span, .menu-pick .what,
.venue-reviews .src, .teaser .t-what, .pill {
  font-family: var(--font-mono);
}
.pill { font-weight: 500; }
.menu-pick .score {
  font-family: var(--font-mono);
  font-weight: 600; border-radius: 9px;
}

/* Fraunces lubi mniejszy tracking w dużych rozmiarach */
h1 { letter-spacing: -0.02em; }
h2 { letter-spacing: -0.01em; }
.logo { letter-spacing: -0.01em; }

/* Statystyki hero: numer w serif, ale bez muzealności */
.hero-stats .stat b { font-weight: 600; }

/* Przyciski: nowocześniejszy kształt */
.btn { border-radius: 14px; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.01em; }

/* Chipsy dzielnic i tagi też na 14px zamiast pigułek */
.district-chips a, .district-chips span { border-radius: 12px; font-family: var(--font-mono); font-weight: 500; }
.pill { border-radius: 8px; }

/* FAQ plus w mono */
.faq summary::after { font-family: var(--font-mono); font-weight: 500; }
