/* Pizzeria San Marco – digitální vizitka
   Motiv: oblouk (ústí pece na dřevo, klenba sklípku). Barvy z interiéru: tmavé dřevo, měď. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url(fonts/schibsted-latin-ext.woff2) format("woff2");
  font-weight: 400 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url(fonts/schibsted-latin.woff2) format("woff2");
  font-weight: 400 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #17110d;          /* tmavé dřevo */
  --surface: #241b15;
  --ink: #f4f2ee;
  --muted: #c9c3bb;
  --accent: #cf7d47;      /* měď pece */
  --accent-ink: #17110d;
  --light: #dedbd5;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.4rem, 1rem + 7.4vw, 7rem);

  --m: clamp(16px, 4.4vw, 72px);
  --gap: clamp(96px, 11vw, 168px);
  --arch: 100vmax 100vmax 0 0;     /* půlkruhový vrchol libovolné šířky */
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.5 "Schibsted Grotesk", system-ui, sans-serif;
  letter-spacing: -0.01em;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2 { font-weight: 800; letter-spacing: -0.045em; line-height: 0.92; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* tlačítko ve tvaru oblouku */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 18px 30px 14px;
  border-radius: 40px 40px 0 0;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s;
}
.btn:hover { background: #e08d55; transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--light { background: var(--light); }
.btn--light:hover { background: #fff; }
.link { font-weight: 600; text-underline-offset: .22em; text-decoration-thickness: 2px; transition: color .2s; }
.link:hover { color: var(--accent); }

/* hlavička */
.top {
  position: absolute; inset: 0 0 auto; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--m);
}
.top .logo img { width: clamp(150px, 15vw, 220px); }

/* úvod */
.hero {
  position: relative; min-height: max(100svh, 680px); overflow: hidden;
  display: grid; align-items: center;
  padding: 120px var(--m) 80px;
}
.hero-text { position: relative; z-index: 2; max-width: min(46vw, 640px); }
.hero h1 { font-size: var(--step-display); }
.hero .lead { margin-top: 36px; font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; }
.status { display: flex; align-items: baseline; gap: 12px; margin-top: 28px; font-weight: 600; min-height: 1.5em; }
.status::before {
  content: ""; flex: none; width: 14px; height: 17px; border-radius: var(--arch);
  background: var(--muted); transform: translateY(2px);
}
.status[data-open="1"]::before { background: var(--accent); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .45; } }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 36px; }
.place { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; transition: color .2s; }
.place:hover { color: var(--accent); }
.hero-arch {
  position: absolute; z-index: 1;
  left: 50vw; bottom: 0; width: 54vw; height: min(78svh, 46vw);
  border-radius: var(--arch); overflow: hidden; background: var(--accent);
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }

/* kontakt + otevírací doba */
.section { padding: var(--gap) var(--m); }
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 64px clamp(40px, 7vw, 120px); background: var(--surface); }
.info h2 { font-size: var(--step-head); margin-bottom: 36px; }
.info address { font-style: normal; font-size: var(--step-lead); line-height: 1.35; }
.info address a { text-decoration: none; transition: color .2s; }
.info address a:hover { color: var(--accent); }
.contacts { display: grid; gap: 8px; margin-top: 28px; font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; }
.contacts a { text-decoration: none; transition: color .2s; overflow-wrap: anywhere; }
.contacts a:hover { color: var(--accent); }
.note { margin-top: 28px; color: var(--muted); max-width: 40ch; }
.hours { width: 100%; border-collapse: collapse; font-size: var(--step-lead); font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 8px 0; text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr.today { color: var(--accent); font-weight: 800; }
.hours tr.today th { font-weight: 800; }

/* tři fotky v obloucích */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 40px); align-items: end; }
.photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--arch); transition: transform 1.2s var(--ease); }
.photos figure:hover img { transform: scale(1.03); }
.photos figcaption { margin-top: 16px; font-weight: 600; }

/* patička */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 0 var(--m) 56px; }
.foot-mark img { width: min(300px, 70vw); }   /* logo je jen 868 px široké, víc ho nezvětšovat */
.foot-legal { color: var(--muted); }
.foot-legal a { color: inherit; text-decoration: none; }

.dock { display: none; }

/* pohyb */
.js .hero-arch { clip-path: inset(100% 0 0 0); animation: shutter 1.1s var(--ease) .15s forwards; }
.js .hero-arch img { transform: scale(1.12); animation: settle 1.6s var(--ease) .15s forwards; }
@keyframes shutter { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(1); } }
.hero-arch img.drift { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06) translateY(-1.5%); } }

.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }
.js .rise:nth-child(2) { transition-delay: .08s; }
.js .rise:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .js .hero-arch, .js .hero-arch img, .hero-arch img.drift { animation: none; clip-path: none; transform: none; }
  .status[data-open="1"]::before { animation: none; }
}

/* úvod na výšku (tablet i telefon) */
@media (max-width: 900px) {
  .hero { align-items: start; min-height: 100svh; padding-top: 112px; }
  .hero-text { max-width: none; }
  .hero h1 { font-size: 12.4vw; }
  .hero .lead { margin-top: 24px; max-width: 34ch; }
  .status { margin-top: 18px; }
  .hero-arch { left: -10vw; width: 120vw; top: auto; bottom: 0; height: 40svh; }
}

/* telefon */
@media (max-width: 720px) {
  .hero .lead { font-size: 1.125rem; }
  .hero-actions { display: none; }
  .hero-arch { height: 44svh; bottom: calc(72px + env(safe-area-inset-bottom)); }
  .info { grid-template-columns: 1fr; }
  .photos { grid-template-columns: 1fr; }
  .foot { padding-bottom: 100px; }
  .dock {
    display: grid;
    position: fixed; z-index: 10; inset: auto 0 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: var(--bg);
  }
}
