/* assets/css/style.css
   Online nabídka spolupráce – moderní one-page, bez frameworků
*/

:root{
  --vh: 1vh;
  --bg: #0b0f14;
  --fg: #ffffff;
  --muted: rgba(255,255,255,.72);

  --panel: rgba(255,255,255,.08);
  --panel-strong: rgba(0,0,0,.45);
  --stroke: rgba(255,255,255,.18);

  --accent: #A3D5FF;
  --accent2: #B8EEC1;

  --radius: 18px;
  --shadow: 0 12px 40px rgba(0,0,0,.35);

  --font-body: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-head: Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --container: 1200px;
  --topbar-h: 78px;

  --speed: 420ms;
}

/* Náhodné motivy + fonty */
body.theme-1{ --accent:#A3D5FF; --accent2:#B8EEC1; --font-head: Montserrat, Inter, sans-serif; }
body.theme-2{ --accent:#D0AFFE; --accent2:#F7C4E8; --font-head: Playfair Display, Inter, serif; }
body.theme-3{ --accent:#A0F0ED; --accent2:#FFD1A1; --font-head: Orbitron, Inter, sans-serif; }

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-snap-type: y mandatory; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  overflow-x:hidden;
}
body.preload *{ transition: none !important; }

a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }

.section{
  position: relative;
  min-height: calc(var(--vh) * 100);
  scroll-snap-align: start;
  display:flex;
  align-items:center;
  padding: calc(var(--topbar-h) + 28px) 18px 34px;
}

.section-inner{
  width: min(var(--container), calc(100% - 2px));
  margin: 0 auto;
}

.center{ display:flex; justify-content:center; align-items:center; }

.h1, .h2{
  font-family: var(--font-head);
  letter-spacing: .3px;
  margin: 0 0 14px;
}
.h1{ font-size: clamp(34px, 5vw, 64px); line-height: 1.06; }
.h2{ font-size: clamp(26px, 3.2vw, 44px); line-height: 1.12; }

.lead{ font-size: clamp(16px, 1.3vw, 20px); color: rgba(255,255,255,.88); max-width: 62ch; margin: 0; }
.muted{ color: var(--muted); margin: 8px 0 0; }

.section-head{ margin: 0 0 20px; }

.glass{
  background: var(--panel);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  transition: transform var(--speed), background var(--speed), border-color var(--speed), opacity var(--speed);
  cursor:pointer;
  text-decoration:none;
  font-weight: 700;
}
.btn:hover{ transform: translateY(-1px); text-decoration:none; }
.btn:active{ transform: translateY(0); }
.btn-primary{ background: linear-gradient(135deg, var(--accent), var(--accent2)); color:#081018; border-color: transparent; }
.btn-ghost{ background: rgba(255,255,255,.06); color: var(--fg); }
.w100{ width: 100%; }

.list{ padding-left: 18px; margin: 14px 0 0; color: rgba(255,255,255,.92); }
.list li{ margin: 8px 0; }

/* Background video */
#bg-video{
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow:hidden;
}
#bg-video-iframe-wrap{
  position:absolute;
  inset:0;
  transform: scale(1.07);
}
#bg-video-dim{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(900px 500px at 75% 20%, rgba(163,213,255,.10), transparent 65%),
    linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.55));
}

/* Audio gate */
#audio-gate{
  position: fixed;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 9999;
  padding: 18px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
}
#audio-gate.hidden{ display:none; }
.audio-gate-card{
  width: min(560px, 100%);
  background: rgba(10,14,20,.72);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  padding: 22px 20px 18px;
  box-shadow: var(--shadow);
  text-align:center;
}
.audio-gate-icon{ font-size: 44px; margin-bottom: 6px; }
.audio-gate-title{ font-family: var(--font-head); font-size: 22px; margin-bottom: 6px; }
.audio-gate-text{ color: rgba(255,255,255,.8); margin-bottom: 14px; }

/* Topbar */
.topbar{
  position: fixed;
  top:0; left:0; right:0;
  height: var(--topbar-h);
  z-index: 999;
  display:flex;
  align-items:center;
  transition: background var(--speed), border-color var(--speed), backdrop-filter var(--speed);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled{
  background: rgba(0,0,0,.50);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}
.topbar-inner{
  width: min(var(--container), calc(100% - 36px));
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-logo{ height: 44px; width:auto; display:block; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }

.nav{ display:flex; align-items:center; gap: 14px; }
.nav-link{
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 10px;
  transition: background var(--speed), color var(--speed), transform var(--speed);
}
.nav-link:hover{ background: rgba(255,255,255,.10); text-decoration:none; }
.nav-link.is-active{ background: rgba(255,255,255,.16); }

.nav-toggle{
  display:none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  height: 2px;
  background: rgba(255,255,255,.92);
  margin: 6px 10px;
  transition: transform var(--speed), opacity var(--speed);
}

/* FAB */
.fab{
  position: fixed;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.92);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  cursor:pointer;
  transition: transform var(--speed), opacity var(--speed), background var(--speed);
  z-index: 998;
  opacity: .0;
  pointer-events: none;
}
.fab:hover{ transform: translateY(-1px); }
.fab-audio{ bottom: 78px; opacity:1; pointer-events:auto; }
.fab-top{ bottom: 22px; }
.fab-top.is-visible{ opacity: 1; pointer-events: auto; }
.fab-ic{ font-size: 18px; }

/* Úvod */
.section-hero .section-inner{ display:flex; justify-content:center; }
.hero-card{
  padding: 28px 24px 20px;
  text-align:center;
  width: min(860px, 100%);
}
.hero-hint{ margin-top: 18px; display:flex; align-items:center; justify-content:center; gap: 14px; opacity:.9; }
.mouse{
  width: 22px; height: 34px;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 14px;
  position: relative;
}
.mouse:after{
  content:"";
  position:absolute;
  left:50%;
  top: 8px;
  width: 4px;
  height: 6px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.75);
  border-radius: 2px;
  animation: wheel 1.2s infinite ease-in-out;
}
@keyframes wheel{
  0%{ opacity:0; transform: translate(-50%, -2px); }
  30%{ opacity:1; }
  100%{ opacity:0; transform: translate(-50%, 10px); }
}
.arrow{
  width: 10px; height: 10px;
  border-right: 2px solid rgba(255,255,255,.75);
  border-bottom: 2px solid rgba(255,255,255,.75);
  transform: rotate(45deg);
  animation: bounce 1.2s infinite ease-in-out;
}
@keyframes bounce{
  0%,100%{ transform: rotate(45deg) translate(0,0); opacity:.6; }
  50%{ transform: rotate(45deg) translate(0,4px); opacity:1; }
}

/* Slider */
.hero-slider{ position: relative; height: calc(var(--vh) * 72); min-height: 420px; border-radius: 22px; overflow:hidden; border:1px solid rgba(255,255,255,.16); box-shadow: var(--shadow); }
.hero-slides{ position:absolute; inset:0; }
.hero-slide{ position:absolute; inset:0; opacity:0; transition: opacity 900ms ease; }
.hero-slide.is-active{ opacity:1; }
.hero-slide img{
  width:100%; height:100%;
  object-fit: cover;
  transform: scale(1.0);
  animation: kenburns 8s ease-in-out infinite alternate;
}
.hero-slide.is-active img{ animation-play-state: running; }
.hero-slide:not(.is-active) img{ animation-play-state: paused; }
@keyframes kenburns{
  from{ transform: scale(1.02) translate(0,0); }
  to{ transform: scale(1.12) translate(-1.5%, -1.2%); }
}
.hero-slide-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
}

.hero-ui{
  position:absolute;
  left: 12px; right: 12px; bottom: 12px;
  display:flex; align-items:center; justify-content:space-between;
  pointer-events: none;
}
.hero-dots{ display:flex; gap:8px; pointer-events:auto; }
.dot{
  width: 10px; height: 10px;
  border-radius: 99px;
  border: 0;
  background: rgba(255,255,255,.35);
  cursor:pointer;
  transition: transform var(--speed), background var(--speed);
}
.dot.is-active{ background: rgba(255,255,255,.85); transform: scale(1.2); }
.hero-arrows{ display:flex; gap:8px; pointer-events:auto; }
.arrow-btn{
  width: 38px; height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.92);
  cursor:pointer;
}

/* Split sections */
.section-split .split{ display:flex; gap: 22px; align-items:center; }
.section-split .col{ flex: 1 1 0; min-width: 0; }
.section-split .text{ padding: 8px 4px; }
.section-split .media{ display:flex; justify-content:center; }
.section-split .video-card{ padding: 14px; }
.video-embed{
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow:hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.video-embed iframe{ width:100%; height:100%; border:0; display:block; }

.actions{ margin-top: 16px; display:flex; gap: 12px; flex-wrap:wrap; }

.reverse{ flex-direction: row-reverse; }

/* Marquee */
.marquee{
  width: 100%;
  overflow:hidden;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.25);
  box-shadow: var(--shadow);
}
.marquee-track{
  display:flex;
  gap: 14px;
  padding: 18px;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee:hover .marquee-track{ animation-play-state: paused; }
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.marquee-item{
  display:block;
  width: 210px;
  height: 120px;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  flex: 0 0 auto;
  transition: transform var(--speed);
}
.marquee-item:hover{ transform: scale(1.03); }
.marquee-item img{ width:100%; height:100%; object-fit: cover; display:block; }

/* Carousel (3.75) */
.carousel{
  display:flex;
  align-items:center;
  gap: 10px;
}
.carousel-btn{
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  flex: 0 0 auto;
}
.carousel-viewport{
  overflow:hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.25);
  box-shadow: var(--shadow);
  flex: 1 1 auto;
}
.carousel-track{
  display:flex;
  gap: 14px;
  padding: 18px;
  will-change: transform;
  transform: translateX(0);
  transition: transform 650ms ease;
}
.card{
  flex: 0 0 calc((100% - 14px * 3) / 3.75); /* 3.75 karty včetně mezer */
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  position: relative;
  min-width: 240px;
}
.card img{ width:100%; height: 220px; object-fit: cover; display:block; }
.card-cap{
  position:absolute;
  left: 10px; right: 10px; bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: 14px;
  backdrop-filter: blur(8px);
}

/* Kontakt */
.section-contact{ padding-bottom: 0; }
.contact{ align-items: stretch; }
.contact .col{ display:flex; flex-direction: column; justify-content:center; }
.contact-box{ padding: 16px 14px; margin: 12px 0 6px; }
.form-card{ padding: 18px 16px; }
.field{ margin-bottom: 14px; }
label{ display:block; margin-bottom: 6px; font-weight: 700; color: rgba(255,255,255,.92); }
input[type="text"], input[type="email"], textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.92);
  outline: none;
  transition: border-color var(--speed), background var(--speed);
}
input:focus, textarea:focus{
  border-color: rgba(255,255,255,.35);
  background: rgba(0,0,0,.32);
}
.checkbox label{ display:flex; gap: 10px; align-items:flex-start; font-weight: 600; color: rgba(255,255,255,.85); }
.checkbox input{ margin-top: 3px; }

.form-msg{
  margin-top: 8px;
  min-height: 22px;
  color: rgba(255,255,255,.9);
}
.form-msg.ok{ color: #b8eec1; }
.form-msg.err{ color: #ffb2b2; }

/* Footer */
.footer{
  margin-top: 22px;
  padding: 16px 18px 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(10px);
}
.footer-inner{
  width: min(var(--container), calc(100% - 2px));
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}
.footer-links{ display:flex; gap: 12px; }
.footer-links a{ color: rgba(255,255,255,.78); }

/* Animace vstupu */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms ease, transform 700ms ease, filter 700ms ease;
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}

.section[data-anim="blur-in"] .reveal.in{ filter: blur(0); }
.section[data-anim="blur-in"] .reveal{ filter: blur(6px); }
.section[data-anim="tilt-in"] .reveal{ transform: translateY(14px) rotateX(8deg); transform-origin: 50% 100%; }
.section[data-anim="tilt-in"] .reveal.in{ transform: translateY(0) rotateX(0); }
.section[data-anim="slide-fade"] .reveal{ transform: translateX(-14px); }
.section[data-anim="slide-fade"] .reveal.in{ transform: translateX(0); }
.section[data-anim="zoom-in"] .reveal{ transform: scale(.97); }
.section[data-anim="zoom-in"] .reveal.in{ transform: scale(1); }
.section[data-anim="backward"] .reveal{ transform: translateY(10px) scale(.99); }
.section[data-anim="backward"] .reveal.in{ transform: translateY(0) scale(1); }

.delay-1{ transition-delay: 240ms; }

/* Responsive */
@media (max-width: 980px){
  .section-split .split{ flex-direction: column; }
  .reverse{ flex-direction: column; }
  .nav{ display:none; }
  .nav-toggle{ display:block; }
  .nav.is-open{
    display:flex;
    position:absolute;
    top: var(--topbar-h);
    right: 18px;
    left: 18px;
    flex-direction: column;
    padding: 14px;
    border-radius: 18px;
    background: rgba(0,0,0,.65);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
  }
  .nav-link{ padding: 12px 12px; }
  .brand-logo{ height: 40px; }
  .card{ min-width: 200px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .hero-slide img{ animation: none !important; }
  .reveal{ transition: none !important; }
  .marquee-track{ animation: none !important; }
  .dot, .btn, .fab{ transition: none !important; }
}
