/* Progrill, s.r.o. — identifikační údaje společnosti.
   Základ (logo, karta, patička) je čisté HTML + CSS a funguje bez JS i bez obrázků.
   Scéna s grilem je bonus, který doplňuje assets/js/site.js (třídy .scene-on / .rich).
   Písmo: Inter (SIL OFL 1.1), hostováno lokálně; font-display: optional = na pomalé
   síti zůstane systémové písmo a text nepřeskakuje. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: optional;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: optional;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --night: #04121a;
  --night-2: #0a1e27;
  --surface: #0b1b22;
  --surface-rich: rgba(7, 18, 23, .88);
  --ink: #efe8dd;
  --ink-soft: #d9d2c6;
  --muted: #a3b0ad;
  --faint: #8e9b98;
  --ember: #e8843c;
  --link: #ffd08a;
  --link-hover: #ffe3b8;
  --ok: #d8f5a8;
  --line: rgba(255, 228, 200, .14);
  --gutter: clamp(1rem, 5.2vw, 6.5rem);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--night);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%) fixed;
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- obsah (základ pro všechna zařízení) ---------- */

.page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.25rem, 3vh, 2rem);
  padding: max(2rem, env(safe-area-inset-top)) var(--gutter) 2.5rem;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
}

/* logo: značka + nápis */
.brand {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 1.4vw, 1.1rem);
}
.brand__mark {
  flex: none;
  width: clamp(2.75rem, 4.6vw, 3.75rem);
  height: clamp(2.75rem, 4.6vw, 3.75rem);
  fill: var(--ember);
}
.brand__name {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 680;
  line-height: 1.05;
  letter-spacing: -.022em;
  color: var(--ink);
}
.brand__form {
  font-size: .5em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.brand__tag {
  margin: .3rem 0 0;
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* karta s údaji */
.card {
  width: min(35rem, 100%);
  padding: clamp(1.25rem, 2.4vw, 1.75rem) clamp(1.25rem, 2.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.card__title {
  margin: 0 0 1.1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.005em;
  color: var(--ink);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.6rem;
  margin: 0;
}
.facts__item { min-width: 0; }
.facts__item--wide { grid-column: 1 / -1; }

.facts dt {
  margin-bottom: .2rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink);
}
.facts address { font-style: normal; }
.num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.facts__copyable {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .7rem;
}

/* kopírování potřebuje JS; bez něj tlačítka nejsou vidět (třídu .js přidá site.js) */
.copy { display: none; }
.js .copy {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2rem;
  padding: .25rem .65rem .25rem .5rem;
  border: 1px solid rgba(255, 228, 200, .26);
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font: 500 .78rem/1 var(--sans);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.copy svg {
  width: .95rem; height: .95rem;
  fill: none; stroke: currentColor; stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
}
.copy:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 228, 200, .5); color: #fff; }
.copy.is-done { color: var(--ok); border-color: rgba(200, 240, 140, .45); }

.legal {
  padding: 1.5rem var(--gutter) max(2rem, env(safe-area-inset-bottom));
  background: rgba(2, 6, 8, .94);
  border-top: 1px solid rgba(255, 228, 200, .08);
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.6;
}
.legal p { margin: 0 0 .35rem; max-width: 62rem; }
.legal strong { color: var(--ink-soft); font-weight: 600; }
.legal__sep { margin: 0 .35em; color: var(--faint); }
.legal__copy { color: var(--faint); }

/* na velké obrazovce patří první obrazovka logu a kartě (a případné scéně), patička až pod ní */
@media (min-width: 900px) {
  .hero { min-height: 100vh; min-height: 100svh; }
}
@media (min-width: 900px) and (max-height: 640px) {
  .hero { justify-content: flex-start; padding-top: 1.5rem; }
}

@media (max-width: 720px) {
  .hero { justify-content: flex-start; padding-top: max(1.5rem, env(safe-area-inset-top)); padding-bottom: 2rem; }
  .facts { grid-template-columns: 1fr; gap: .9rem; }
}

/* ---------- scéna (bonus) ----------
   Vrstvy scény vloží site.js jen na velké obrazovce s rychlým připojením; do té doby je
   kontejner prázdný a skrytý. Krajina je předpečený obrázek, živě se kreslí jen oheň
   a světlušky na dvou canvasech. */

.scene {
  display: none;
  position: fixed;
  inset: 0 0 auto 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background: #03090c;
  opacity: 0;
  transition: opacity .8s ease-out;
}
.scene-on .scene { display: block; }
.rich .scene { opacity: 1; }
.rich .card { background: var(--surface-rich); }

.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.fx { contain: strict; }
.relief { mix-blend-mode: soft-light; }

.mist { overflow: visible; will-change: transform; }
.mist--far  { animation: drift-a 70s ease-in-out infinite alternate; }
.mist--near { animation: drift-b 52s ease-in-out infinite alternate; }

.firelight {
  mix-blend-mode: screen;
  opacity: .9;
  will-change: opacity;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 66% 70%, transparent 42%, rgba(1, 4, 6, .55) 100%),
    linear-gradient(180deg, rgba(1, 5, 8, .35) 0%, transparent 22%);
}

@keyframes drift-a { from { transform: translate3d(-2.2%, 0, 0); } to { transform: translate3d(2.2%, 0, 0); } }
@keyframes drift-b { from { transform: translate3d(2.8%, 0, 0); } to { transform: translate3d(-2.4%, 0, 0); } }

/* ---------- omezený pohyb ---------- */

@media (prefers-reduced-motion: reduce) {
  .mist { animation: none; }
  .scene, .copy { transition: none; }
  .firelight { opacity: .85; }
}
