/* VeroReklama – jednostránkový web bez scrollu, zelené pozadí */

:root {
  --g: #85C226;
  --fg: #fff;   /* všechny texty, linky a tlačítka jsou bílé */
  color-scheme: light;
  --u: min(1vw, 1.45vh);                       /* základní jednotka velikostí */
  --pad: clamp(16px, 3.2vmin, 44px);
}
@media (max-aspect-ratio: 4/5) {
  :root { --u: min(2.5vw, 1.3vh); }            /* na výšku (mobil, tablet) */
}

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

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;                            /* žádný scroll */
}
html {
  /* pozadí: bg-vero.png (záloha zelená) */
  background: var(--g) url("bg-vero.png") 35% center / cover no-repeat;
}
body {
  height: 100dvh;
  color: var(--fg);
  font: 400 max(14px, calc(var(--u) * 1.5)) / 1.4 "Bricolage Grotesque", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}
a:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }

/* ---------- rozvržení: obsah + kontakt přesně na výšku okna ---------- */
.page {
  height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(12px, 2.5vh, 32px);
  padding:
    calc(var(--pad) + env(safe-area-inset-top, 0px))
    calc(var(--pad) + env(safe-area-inset-right, 0px))
    calc(var(--pad) + env(safe-area-inset-bottom, 0px))
    calc(var(--pad) + env(safe-area-inset-left, 0px));
}
.stage {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(20px, 4vw, 72px);
}

/* vlevo: logo, slogan, text a tlačítko; vpravo: grafika – vše se vždy celé vejde */
.intro {
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  align-items: start;
  gap: calc(var(--u) * 1.4);
}
.logo-box, .slogan-box, .gfx-box { min-height: 0; min-width: 0; margin: 0; }
.slogan-box { height: 100%; }
.logo  { display: block; height: clamp(44px, 16vh, 160px); width: auto; max-width: 100%; }
.slogan, .gfx { display: block; width: 100%; height: 100%; object-fit: contain; }
.slogan { object-position: left center; }
.gfx    { object-position: right center; transition: transform .5s cubic-bezier(.2, .7, .2, 1); transform-origin: 50% 50%; }

.lead { margin: 0; max-width: 34ch; font-size: max(14px, calc(var(--u) * 1.7)); font-weight: 600; line-height: 1.4; }

/* tlačítko Nabídka + ohnutá šipka k grafice */
.btns { font-size: max(14px, calc(var(--u) * 1.5)); }
.btn {
  position: relative;
  display: inline-block;
  padding: .8em 1.6em;
  border: 3px solid var(--fg);
  border-radius: 4px;
  background: transparent;
  color: var(--fg);
  font-weight: 800;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--fg); color: var(--g); }
.arr {
  display: none;
  position: absolute;
  left: calc(100% + .6em);
  top: calc(50% - 2.3em);
  width: 8.5em;
  height: 3em;
  overflow: visible;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.arr path { fill: none; stroke: var(--fg); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1000px) and (min-aspect-ratio: 1/1) { .arr { display: block; } }

/* najetí na „Nabídka“ – grafika vyjede nahoru; klik – zvětší se a vrátí */
.stage:has(.nab:focus-visible) .gfx { transform: translateY(-2vh); }
@media (hover: hover) {
  .stage:has(.nab:hover) .gfx { transform: translateY(-2vh); }
  .nab:hover .arr { transform: translate(6px, -5px); }
}
.gfx.pop { animation: pop .9s ease-in-out; }
@keyframes pop { 0% { scale: 1; } 35% { scale: 1.06; } 100% { scale: 1; } }

/* ---------- kontakt ---------- */
.contact {
  padding-top: clamp(10px, 2vh, 22px);
  border-top: 3px solid var(--fg);
  font-size: max(12.5px, calc(var(--u) * 1.35));
  font-weight: 600;
  line-height: 1.45;
}
.links {
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
  display: flex;                               /* tři údaje rozprostřené přes celou šířku */
  justify-content: space-between;
  align-items: baseline;
  gap: 1em 2em;
}
.links li:last-child { text-align: right; }
.copy { display: block; margin-top: .2em; font-size: .9em; font-weight: 600; }

/* ---------- mobil / na výšku: logo nad grafikou ---------- */
@media (max-aspect-ratio: 4/5) {
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: calc(var(--u) * 1.5); }
  /* logo a slogan vedle sebe, pod nimi text a tlačítko */
  .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; gap: calc(var(--u) * 1.4) calc(var(--u) * 1.6); }
  .logo-box, .slogan-box { height: 100%; }
  .logo { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
  .slogan { object-position: right center; }
  .lead, .btns { grid-column: 1 / -1; }
  .gfx { height: auto; max-height: 36vh; object-position: center; }
  .stage:has(.nab:focus-visible) .gfx { transform: translateY(-1.2vh); }
  .links { flex-direction: column; align-items: flex-start; gap: .2em; }
  .links li:last-child { text-align: left; }
}
@media (max-aspect-ratio: 4/5) and (hover: hover) { .stage:has(.nab:hover) .gfx { transform: translateY(-1.2vh); } }

/* širší okno na výšku (tablet): nižší kontakt a menší grafika, aby slogan zůstal velký */
@media (max-aspect-ratio: 4/5) and (min-width: 600px) {
  .gfx { max-height: 30vh; }
  .links { flex-direction: row; align-items: baseline; gap: 1em 2em; }
  .links li:last-child { text-align: right; }
}

/* nízká okna: úsporné rozvržení, aby se vše vešlo */
@media (max-height: 520px) { .lead { display: none; } }
@media (max-aspect-ratio: 4/5) and (max-height: 700px) { .lead { display: none; } }
@media (max-height: 430px) { .logo { height: clamp(36px, 14vh, 160px); } }

@media (prefers-reduced-motion: reduce) {
  .gfx.pop { animation: none; }
  .gfx, .arr { transition: none; }
}
