/* Pizza & Pasta na Farmě – jednotný design s restaurace-na-farme.cz
   (Josefin Sans + Open Sans, tmavé dřevo, bílá obrysová tlačítka) */
:root {
  --ink: #141414;
  --ink-2: #1c1c1c;
  --paper: #ffffff;
  --paper-2: #f6f4f0;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --line: #e4e0d9;
  --accent: #f5a623;   /* oranžová z tištěného menu */
  --red: #d8232a;
  --green: #1e9e45;
  --wood: #2a1d14;
  --head: 'Josefin Sans', 'Segoe UI', Arial, sans-serif;
  --body: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  --wrap: 1180px;
  --nav-h: 86px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; line-height: 1.2; margin: 0 0 .5em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 16px 32px 13px;
  border: 2px solid currentColor;
  transition: background .2s, color .2s, border-color .2s;
  line-height: 1;
}
.btn-ghost { color: #fff; border-radius: 40px; background: rgba(0,0,0,.15); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #fff; color: var(--ink); }
.btn-outline { color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; }
.topbar { background: rgba(0,0,0,.45); font-family: var(--head); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; transition: opacity .25s, transform .25s; }
.topbar-in { display: flex; align-items: center; justify-content: center; gap: 28px; height: 32px; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; opacity: .9; }
.topbar-item:hover { opacity: 1; }
.topbar svg, .socials svg { width: 14px; height: 14px; fill: currentColor; }
.socials { display: flex; gap: 14px; }

.nav { transition: background .25s, box-shadow .25s; }
.nav-in { display: flex; align-items: center; justify-content: center; gap: 44px; height: var(--nav-h); position: relative; }
.brand img { width: 92px; height: auto; transition: width .25s; }
.brand-dark { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 32px; }
.nav-list a { font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s, opacity .2s; }
.nav-list a:hover, .nav-list a.active { border-bottom-color: var(--accent); }
.nav-ext a { opacity: .7; font-weight: 400; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: inherit; }
.nav-toggle span { display: block; height: 2px; background: currentColor; margin: 6px 0; transition: transform .25s, opacity .25s; }

/* Compact white header after scroll */
body.scrolled .topbar { opacity: 0; transform: translateY(-100%); pointer-events: none; position: absolute; width: 100%; }
body.scrolled .nav { background: rgba(255,255,255,.97); color: var(--ink); box-shadow: 0 2px 14px rgba(0,0,0,.12); }
body.scrolled .nav-in { height: 64px; }
body.scrolled .brand img { width: 64px; }
body.scrolled .brand-light { display: none; }
body.scrolled .brand-dark { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: var(--wood) url('img/wood.jpg') center / cover no-repeat;
  padding: 150px 20px 110px;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.55) 100%); }
.hero-in { position: relative; max-width: 760px; }
.hero-logo { width: 300px; margin: 0 auto 28px; filter: drop-shadow(0 6px 24px rgba(0,0,0,.6)); }
.hero-sub { font-family: var(--head); font-weight: 300; font-size: 22px; letter-spacing: .08em; line-height: 1.5; margin: 0 0 36px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.hero-phone { font-family: var(--head); font-weight: 600; letter-spacing: .15em; text-transform: uppercase; font-size: 13px; opacity: .85; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 3px; }
.hero-phone:hover { opacity: 1; }
.scroll-hint { position: absolute; left: 50%; bottom: 36px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.8); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 4px; height: 4px; margin-left: -2px; background: #fff; border-radius: 50%; animation: hint 1.8s infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(18px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.title { font-size: 30px; letter-spacing: .3em; }
.lead { font-size: 18px; color: var(--muted); margin-bottom: 1.2em; }
.intro p { margin: 0 0 1.1em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 52px 0 44px; text-align: center; }
.feature svg { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--ink); }
.feature h3 { font-size: 15px; letter-spacing: .18em; }
.feature p { font-size: 15px; color: var(--muted); margin: 0; }
.intro-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ---------- Menu (tmavý styl jako tištěné menu) ---------- */
.menu { background: var(--ink); color: #f3efe8; }

.menu-part { padding: 80px 0 90px; scroll-margin-top: 64px; }
.menu-part.alt { background: var(--ink-2); }
.menu-head { text-align: center; margin-bottom: 48px; }
.menu-title { font-size: clamp(44px, 7vw, 76px); letter-spacing: .02em; line-height: 1; margin: 0 0 18px; color: #fff; }
.script { font-family: 'Josefin Sans', sans-serif; font-style: italic; font-weight: 300; text-transform: none; letter-spacing: 0; color: var(--accent); }
.script.big { font-size: 1em; }
.menu-note { color: rgba(255,255,255,.65); font-size: 14px; margin: 0; }
.menu-note strong { color: var(--accent); }
.menu-banner { display: inline-block; background: var(--red); color: #fff; padding: 12px 24px; font-weight: 600; font-size: 15px; margin: 0; transform: rotate(-1deg); box-shadow: 4px 4px 0 rgba(0,0,0,.35); }

.group { margin-bottom: 56px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid var(--accent); padding-bottom: 8px; margin-bottom: 18px; }
.group-head h3 { font-size: 30px; letter-spacing: .1em; margin: 0; color: var(--accent); }
.prices { display: flex; gap: 26px; font-family: var(--head); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.prices b { color: var(--accent); font-size: 17px; margin-left: 4px; }

.items { list-style: none; counter-reset: pz; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 48px; }
.items li { counter-increment: pz; display: grid; grid-template-columns: 28px 1fr; gap: 0 10px; padding: 10px 0; border-bottom: 1px dotted rgba(255,255,255,.14); }
.items li::before { content: counter(pz); font-family: var(--head); font-weight: 700; color: var(--accent); font-size: 15px; padding-top: 2px; }
.items .name { font-family: var(--head); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .06em; color: #fff; }
.items .desc { grid-column: 2; font-size: 14px; color: rgba(255,255,255,.7); }

.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.box { border: 2px solid var(--accent); padding: 16px 20px; font-size: 15px; color: rgba(255,255,255,.85); }
.box b { color: var(--accent); }

/* Pasta / drinks – řádky s tečkami */
.row { display: flex; align-items: baseline; gap: 10px; }
.row .name { font-family: var(--head); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .05em; color: #fff; white-space: nowrap; }
.row .name small { font-family: var(--body); font-weight: 400; font-size: 13px; text-transform: none; letter-spacing: 0; color: rgba(255,255,255,.55); margin-left: 4px; }
.dots { flex: 1; border-bottom: 1px dotted rgba(255,255,255,.35); position: relative; top: -5px; min-width: 20px; }
.row .price { font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--accent); white-space: nowrap; }

.pasta { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; }
.pasta > li { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.pasta .desc { margin: 6px 0 8px; color: rgba(255,255,255,.75); font-size: 15px; }
.extras-inline { list-style: none; margin: 0; padding: 0 0 0 20px; max-width: 540px; font-size: 13px; color: rgba(255,255,255,.6); }
.extras-inline li { display: flex; align-items: baseline; gap: 10px; }
.extras-inline .dots { top: -3px; border-color: rgba(255,255,255,.2); }
.extras-inline li span:last-child { color: var(--accent); font-weight: 600; }

.extras { max-width: 860px; margin: 48px auto 0; border: 2px solid var(--accent); padding: 26px 30px 22px; }
.extras h3 { font-size: 28px; letter-spacing: .06em; margin: 0 0 14px; color: #fff; }
.extras h3 .script { font-size: 22px; }
.extras-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 40px; font-size: 14px; }
.extras-grid li { display: flex; align-items: baseline; gap: 10px; }
.extras-grid .dots { top: -4px; }
.extras-grid li span:last-child { color: var(--accent); font-weight: 700; }
.allergens { max-width: 860px; margin: 26px auto 0; font-size: 13px; color: rgba(255,255,255,.5); text-align: center; }

.drinks { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; }
.drinks > li { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.variants { margin: 6px 0 0; font-family: var(--head); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: rgba(255,255,255,.75); }
.obal { max-width: 860px; margin: 28px auto 0; text-align: right; font-family: var(--head); text-transform: uppercase; letter-spacing: .14em; font-size: 14px; color: rgba(255,255,255,.7); }
.obal b { display: inline-block; background: var(--red); color: #fff; padding: 8px 16px 6px; margin-left: 8px; font-size: 18px; transform: rotate(-2deg); }

.print-menu { margin-top: 72px; text-align: center; border-top: 1px solid rgba(255,255,255,.1); padding-top: 48px; }
.print-menu h3 { font-size: 16px; letter-spacing: .3em; color: rgba(255,255,255,.8); }
.print-menu p { color: rgba(255,255,255,.5); font-size: 14px; margin: 0 0 24px; }
.print-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.print-item { display: block; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .2s; }
.print-item:hover { transform: translateY(-4px); }

/* ---------- Objednávky ---------- */
.order { position: relative; padding: 110px 0; background: var(--wood) url('img/order-bg.jpg') center / cover no-repeat; }
.order::before { content: ''; position: absolute; inset: 0; background: rgba(10,8,6,.5); }
.order .wrap { position: relative; }
.order-card { display: grid; grid-template-columns: 1fr 1fr; background: #fff; max-width: 1020px; margin: 0 auto; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.order-text { padding: 56px 52px; }
.order-text .title { font-size: 26px; }
.order-text .lead { margin-bottom: .8em; }
.order-text p { margin: 0 0 1.2em; }
.order-hours { margin-top: 18px !important; font-family: var(--head); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.order-img { background: url('img/order-pizza.jpg') center / cover no-repeat; min-height: 360px; }

/* ---------- Kontakt ---------- */
.contact { background: var(--paper-2); }
.contact .title { margin-bottom: 48px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-col h3 { font-size: 13px; letter-spacing: .22em; color: var(--muted); margin: 26px 0 6px; }
.contact-col h3:first-child { margin-top: 0; }
.contact-col p { margin: 0; font-size: 17px; }
.contact-col p a { text-decoration: none; }
.contact-col p a:hover { text-decoration: underline; }
.hours { border-collapse: collapse; font-size: 17px; }
.hours td { padding: 2px 28px 2px 0; }
.hours td:last-child { font-weight: 600; }
.contact-map { background: #ddd; min-height: 420px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 56px 0 40px; text-align: center; font-size: 14px; }
.footer-brands { display: flex; align-items: center; justify-content: center; gap: 28px; margin-bottom: 26px; }
.footer-brands img { width: 110px; opacity: .95; }
.footer-x { font-family: var(--head); font-size: 28px; color: rgba(255,255,255,.35); }
.footer p { margin: 0 0 8px; }
.footer p a { text-decoration: none; color: #fff; }
.footer p a:hover { text-decoration: underline; }
.footer .muted { color: rgba(255,255,255,.45); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; box-shadow: 0 10px 50px rgba(0,0,0,.8); }
.lightbox-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-in { gap: 28px; }
  .nav-list { gap: 20px; }
  .nav-list a { font-size: 12px; letter-spacing: .14em; }
  .items { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .order-card { grid-template-columns: 1fr; }
  .order-img { min-height: 260px; order: -1; }
}
@media (max-width: 760px) {
  :root { --nav-h: 70px; }
  .topbar { display: none; }
  .nav { background: rgba(0,0,0,.35); }
  .nav-in { justify-content: flex-start; }
  .brand img { width: 70px; }
  .nav-toggle { display: block; }
  .nav-list { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.2); padding: 8px 0; }
  .nav-list li { width: 100%; }
  .nav-list a { display: block; padding: 14px 24px; border-bottom: 0; }
  .nav-list a.active { color: var(--accent); }
  .nav-open .nav-list { display: flex; }
  .nav-open .nav { background: #fff; color: var(--ink); }
  .nav-open .brand-light { display: none; }
  .nav-open .brand-dark { display: block; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  body.scrolled .nav-in { height: 60px; }

  .hero { padding: 120px 20px 90px; }
  .hero-logo { width: 220px; }
  .hero-sub { font-size: 18px; }
  .section { padding: 64px 0; }
  .title { font-size: 22px; letter-spacing: .22em; }
  .features { grid-template-columns: 1fr; gap: 28px; margin: 40px 0 36px; }
  .menu-part { padding: 56px 0 64px; scroll-margin-top: 60px; }
  .group-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .prices { gap: 18px; }
  .boxes { grid-template-columns: 1fr; }
  .row { flex-wrap: wrap; }
  .row .name { font-size: 18px; white-space: normal; }
  .row .price { font-size: 18px; }
  .extras { padding: 20px 18px 16px; }
  .extras-grid { grid-template-columns: 1fr; }
  .print-grid { grid-template-columns: 1fr; max-width: 360px; }
  .order { padding: 64px 0; }
  .order-text { padding: 36px 24px; }
  .contact-map { min-height: 300px; }
  .contact-map iframe { min-height: 300px; }
  .footer-brands { gap: 16px; }
  .footer-brands img { width: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint span { animation: none; }
}
