/* ─────────────────────────────────────────────────────────────
   Rade Films – style.css
   Autor: Radek Sušil | radefilms.cz
   ───────────────────────────────────────────────────────────── */

/* ─── PROMĚNNÉ & RESET ────────────────────────────────────── */
:root {
  --bg:          #1a1a1a;
  --bg-light:    #252525;
  --bg-mid:      #202020;
  --accent:      #c9a84c;
  --accent-dark: #a8883a;
  --text:        #ffffff;
  --text-muted:  #888888;
  --font:        'Montserrat', sans-serif;
  --radius:      12px;
  --trans:       0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, textarea { font-family: var(--font); }

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.section { padding: 100px 0; }
.section-dark { background: var(--bg-light); }

/* ─── ANIMACE – SCROLL REVEAL (4 směry) ───────────────────── */
[data-reveal],
[data-reveal="left"],
[data-reveal="right"],
[data-reveal="scale"] {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
[data-reveal]             { transform: translateY(50px); }
[data-reveal="left"]      { transform: translateX(-60px); }
[data-reveal="right"]     { transform: translateX(60px); }
[data-reveal="scale"]     { transform: scale(0.88); }

[data-reveal].revealed,
[data-reveal="left"].revealed,
[data-reveal="right"].revealed,
[data-reveal="scale"].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* ─── TYPOGRAFIE ──────────────────────────────────────────── */
.accent        { color: var(--accent); }
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 40px;
}
.section-header { text-align: center; }

/* ─── TLAČÍTKA ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: background var(--trans), transform var(--trans);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: background var(--trans), color var(--trans);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-arrow { font-size: 1.1em; }

/* ─── NAVIGACE ────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--trans), padding var(--trans), box-shadow var(--trans);
}
#navbar.scrolled {
  background: rgba(26, 26, 26, 0.96);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.nav-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
/* Logo ikona – transparent PNG, žádný blend mode potřeba */
.nav-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-r { color: var(--accent); }

/* Sociální sítě v navigaci */
.nav-socials {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.nav-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color var(--trans), background var(--trans);
}
.nav-social-icon svg { width: 18px; height: 18px; }
.nav-social-icon:hover { color: var(--accent); background: rgba(201,168,76,0.1); }

/* Přepínač jazyka */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.nav-lang-btn {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  border-radius: 3px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--trans), background var(--trans);
}
.nav-lang-btn:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-lang-btn.active { color: var(--accent); background: rgba(201,168,76,0.1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: color var(--trans);
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  padding: 11px 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: background var(--trans);
}
.nav-links .nav-cta:hover { background: var(--accent-dark); color: #fff; }

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 98;
  backdrop-filter: blur(2px);
}
.nav-overlay.show { display: block; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO – FULLSCREEN ───────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 40px 80px;
}

/* Pozadí – kameraman, fullscreen */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('img/Hero2.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s ease;
  filter: grayscale(1);
  z-index: 0;
}
#hero.loaded .hero-bg-img { transform: scale(1); } /* Jemný Ken Burns efekt */

/* Tmavý overlay přes fotku */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0,0,0,0.90) 0%,
    rgba(0,0,0,0.70) 60%,
    rgba(0,0,0,0.45) 100%
  );
  z-index: 1;
}

/* Velký průhledný text na pozadí */
.hero-bg-text {
  position: absolute;
  top: 50%;
  right: -2%;
  transform: translateY(-50%);
  font-size: clamp(160px, 28vw, 380px);
  font-weight: 900;
  color: rgba(255,255,255,0.18);
  user-select: none;
  pointer-events: none;
  line-height: 1;
  letter-spacing: 0.08em;
  z-index: 2;
}

/* Hlavní obsah hero */
.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-text { max-width: 600px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}
.hero-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.6); }
  50% { box-shadow: 0 0 0 8px rgba(201,168,76,0); }
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}


.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Scrollování dolů – animovaná šipka */
.hero-scroll-down {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.5);
  animation: bounce 2s ease infinite;
  transition: color var(--trans);
}
.hero-scroll-down svg { width: 32px; height: 32px; }
.hero-scroll-down:hover { color: var(--accent); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── PARTNEŘI (scrollující pás) ─────────────────────────── */
#partners {
  background: var(--bg-light);
  padding: 24px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.partners-track-wrap { overflow: hidden; }
.partners-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scrollLeft 25s linear infinite;
}
.partners-track span {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--trans);
}
.partners-track span:hover { color: var(--text); }

@keyframes scrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── TICKER LIŠTA ────────────────────────────────────────── */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: #000;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 16px 0;
  position: relative;
}
.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker-wrap::before { left: 0;  background: linear-gradient(to right, #0a0a0a, transparent); }
.ticker-wrap::after  { right: 0; background: linear-gradient(to left,  #0a0a0a, transparent); }

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 42s linear infinite;
  width: max-content;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

.ticker-logo {
  display: inline-flex;
  align-items: center;
  padding: 0 48px;
  opacity: 0.55;
  transition: opacity .25s;
  flex-shrink: 0;
}
.ticker-logo:hover { opacity: 1; }
.ticker-logo img {
  height: 52px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
  filter: brightness(5);
  mix-blend-mode: screen;
}

/* Loga s tmavým obsahem — invertovat na bílé */
.ticker-logo img[alt="KTM"],
.ticker-logo img[alt="HBO"],
.ticker-logo img[alt="Kling AI"],
.ticker-logo img[alt="Adobe"],
.ticker-logo img[alt="Blackmagic"] {
  filter: grayscale(1) invert(1) brightness(4);
  mix-blend-mode: screen;
}

/* Wide wordmarky a velká loga */
.ticker-logo img[alt="Hugo Boss"],
.ticker-logo img[alt="Meta"] {
  max-width: 380px;
  height: 90px;
}

.ticker-logo img[alt="Blackmagic"] {
  max-width: 260px;
  height: 60px;
}

.ticker-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

/* ─── O MNĚ ───────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.about-photo-wrap {
  position: relative;
}
.about-photo {
  height: 550px;
  border-radius: var(--radius);
  object-fit: cover;
  filter: grayscale(15%);
}
.about-badge {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background: var(--accent);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 30px rgba(201,168,76,0.3);
}
.badge-number { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.badge-text   { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

.about-text .section-title { margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 18px; font-size: 0.95rem; }

/* Service list (náhrada za skill bary) */
.about-services { margin: 28px 0; display: flex; flex-direction: column; gap: 16px; }
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  transition: background var(--trans), border-color var(--trans);
}
.service-item:hover { background: rgba(201,168,76,0.07); border-color: rgba(201,168,76,0.2); }
.service-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: rgba(201,168,76,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.service-icon svg { width: 18px; height: 18px; }
.service-item strong { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 2px; }
.service-item span   { font-size: 0.86rem; color: var(--text-muted); }

/* ─── CITÁT ───────────────────────────────────────────────── */
#quote-bar {
  padding: 80px 40px;
  background: var(--bg-mid);
  border-top: 1px solid rgba(196,160,80,0.15);
  border-bottom: 1px solid rgba(196,160,80,0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-bar-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.quote-deco {
  position: absolute;
  font-size: 11rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  opacity: 0.1;
  font-family: Georgia, serif;
  pointer-events: none;
  user-select: none;
}

.quote-deco--open {
  top: -30px;
  left: -10px;
}

.quote-deco--close {
  bottom: -60px;
  right: -10px;
}

.quote-bar-text {
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0 0 28px;
  font-style: italic;
  letter-spacing: 0.01em;
  padding: 0 60px;
}

.quote-bar-author {
  display: inline-block;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Hover animace */
#quote-bar {
  cursor: default;
  transition: box-shadow 0.6s ease;
}

#quote-bar:hover {
  box-shadow: inset 0 0 120px rgba(196,160,80,0.04);
}

.quote-deco {
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1);
}

.quote-deco--open  { transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.quote-deco--close { transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1); }

#quote-bar:hover .quote-deco--open  { opacity: 0.2; transform: translate(-12px, -8px); }
#quote-bar:hover .quote-deco--close { opacity: 0.2; transform: translate(12px, 8px); }

.quote-bar-text {
  transition: letter-spacing 0.6s cubic-bezier(0.22,1,0.36,1), color 0.4s ease;
}

#quote-bar:hover .quote-bar-text {
  letter-spacing: 0.025em;
}

.quote-bar-author {
  transition: opacity 0.4s ease, letter-spacing 0.6s ease, color 0.4s ease;
}

#quote-bar:hover .quote-bar-author {
  letter-spacing: 0.26em;
  color: #fff;
}

@keyframes shimmer-sweep {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

#quote-bar:hover .quote-bar-text .accent {
  background: linear-gradient(90deg, var(--accent), #fff 50%, var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-sweep 1.6s ease forwards;
}

/* ─── PROJEKTY ────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  height: 280px;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}
.project-item.large {
  grid-column: span 2;
  height: 380px;
}
.project-item img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  object-fit: cover;
  object-position: left bottom;
}
.project-item img[alt="NATO vs Rusko"]      { object-position: 20% top; }
.project-item img[alt="Generál Petr Pavel"] { object-position: 60% bottom; }
.project-item:hover img { transform: scale(1.08); }

/* YouTube hover iframe */
.project-yt-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.project-yt-frame iframe { width: 100%; height: 100%; border: none; }
.project-yt-thumb { transition: opacity 0.4s ease, transform 0.6s ease !important; }
[data-yt].yt-playing .project-yt-frame { opacity: 1; pointer-events: auto; }
[data-yt].yt-playing .project-yt-thumb { opacity: 0; }
[data-yt].yt-playing .project-overlay  { opacity: 0; }
[data-yt].yt-playing .yt-play-btn      { opacity: 0; }

/* YouTube play tlačítko */
.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 3;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.7));
  pointer-events: none;
}
.project-item:hover .yt-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--trans);
}
.project-item:hover .project-overlay { opacity: 1; }

.project-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 4px;
}
.project-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.project-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── VIDEA (thumbnail + play tlačítko) ──────────────────── */
.section-title.light, .section-eyebrow.light { color: #fff; }
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.video-item { }
.video-thumb-link {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.video-thumb-link img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.85);
}
.video-thumb-link:hover img {
  transform: scale(1.05);
  filter: brightness(0.6);
}

/* Play tlačítko */
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 64px; height: 64px;
  background: rgba(201,168,76,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}
.video-play-btn svg { width: 28px; height: 28px; color: #fff; margin-left: 4px; }
.video-thumb-link:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent);
}

.video-title {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--trans);
}
.video-item:hover .video-title { color: var(--accent); }

/* ─── TYPY PROJEKTŮ ─────────────────────────────────────── */
.ptype-intro {
  max-width: 620px;
  margin: 16px auto 0;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  text-align: center;
}

.ptype-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.ptype-card {
  background: var(--bg-light);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 40px 28px 36px;
  position: relative;
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}

.ptype-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.ptype-card:hover::after { transform: scaleX(1); }
.ptype-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 32px rgba(196,160,80,0.1);
  border-color: rgba(196,160,80,0.2);
}

.ptype-num {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(196,160,80,0.07);
  letter-spacing: -0.03em;
  pointer-events: none;
  user-select: none;
}

.ptype-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  color: var(--accent);
}

.ptype-icon svg {
  width: 100%;
  height: 100%;
}

.ptype-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.ptype-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* ─── BLOG ────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans), border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  position: relative;
}
.blog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1.5px solid var(--accent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}
.blog-card:hover::before { opacity: 1; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(196,160,80,0.12); }
.blog-thumb {
  height: 200px;
  overflow: hidden;
}
.blog-thumb img { transition: transform 0.6s ease; height: 100%; }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 8px;
}
.blog-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-date { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 12px; }
.blog-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.blog-readmore {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  transition: gap var(--trans);
}
.blog-readmore:hover { text-decoration: underline; }
.blog-readmore::after { content: ''; position: absolute; inset: 0; z-index: 2; }
#blogGrid .blog-card:nth-child(n+4) { display: none; }

/* ─── KONTAKT ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.contact-info p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact-detail { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }
.contact-icon { font-size: 1.1rem; }
.contact-detail a { color: var(--text-muted); transition: color var(--trans); }
.contact-detail a:hover { color: var(--accent); }
.contact-socials { display: flex; gap: 12px; margin-top: 8px; }
.contact-yt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid rgba(201,168,76,0.4);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  transition: background var(--trans), border-color var(--trans);
}
.contact-yt-link:hover { background: rgba(201,168,76,0.1); border-color: var(--accent); }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: border-color var(--trans), color var(--trans), background var(--trans);
}
.social-link:hover { border-color: var(--accent); color: var(--accent); background: rgba(201,168,76,0.1); }

/* Formulář */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--trans), background var(--trans);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.09);
}

.form-msg { font-size: 0.85rem; margin-top: 10px; min-height: 20px; }
.form-msg.ok  { color: #4ade80; }
.form-msg.err { color: #f87171; }
.form-gdpr {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
  margin-top: 14px;
}
.form-gdpr a { color: rgba(255,255,255,0.45); text-decoration: underline; text-underline-offset: 3px; }
.form-gdpr a:hover { color: var(--accent); }

/* ─── PATIČKA (Hardy style) ───────────────────────────────── */
#footer {
  background: #0d0d0d;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-top-bar {
  padding: 60px 0 40px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
}

/* Levé + pravé nav */
.footer-nav-left,
.footer-nav-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav-right { align-items: flex-end; }
.footer-nav-left a,
.footer-nav-right a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--trans);
}
.footer-nav-left a:hover,
.footer-nav-right a:hover { color: var(--accent); }

/* Střed – logo + popis + social */
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-logo-wrap { display: block; }
.footer-logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.footer-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}
.footer-email {
  color: var(--accent);
  text-decoration: none;
}
.footer-email:hover { text-decoration: underline; }
.footer-ico {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.6;
}
.footer-social-icons {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.footer-soc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--text-muted);
  transition: color var(--trans), border-color var(--trans), background var(--trans);
}
.footer-soc svg { width: 16px; height: 16px; }
.footer-soc:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(201,168,76,0.1);
}

/* Dolní pruh */
.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.3);
}

/* ─── RESPONZIVITA ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-photo { height: 400px; }
  .about-badge { right: 20px; }
  .hero-content { gap: 40px; }
  .hero-photo-wrap { width: 300px; }
  /* Nav – méně paddingu u linků aby se vešly */
  .nav-links a { padding: 8px 11px; font-size: 0.85rem; }
  .nav-links .nav-cta { padding: 9px 18px; font-size: 0.85rem; }
}

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .videos-grid   { grid-template-columns: 1fr; }
  .blog-grid     { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .contact-grid  { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 860px) {
  /* Navigace – mobile menu */
  .nav-toggle { display: flex; }
  .nav-socials { display: none; }
  .footer-cols { grid-template-columns: 1fr; text-align: center; }
  .footer-nav-left, .footer-nav-right { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
  .footer-nav-right { align-items: center; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(240px, 72vw);
    height: 100vh;
    background: #141414;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 70px 0 40px;
    transition: right 0.3s cubic-bezier(.4,0,.2,1);
    z-index: 99;
    border-left: 1px solid rgba(255,255,255,0.08);
    overflow-y: auto;
    list-style: none;
  }
  .nav-links.open { right: 0; }
  /* li musí být blok přes celou šířku panelu */
  .nav-links > li {
    display: block;
    width: 100%;
  }
  .nav-links > li > a {
    display: block;
    width: 100%;
    padding: 17px 28px;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links > li > a:hover { color: #fff; background: rgba(255,255,255,0.04); }
  /* Kontakt tlačítko v panelu */
  .nav-links > li:last-child {
    padding: 24px 28px 0;
    border-bottom: none;
  }
  .nav-links .nav-cta {
    display: block;
    width: 100%;
    padding: 14px 0;
    text-align: center;
    border-radius: 4px;
    background: var(--accent);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    border-bottom: none;
  }
  .nav-links .nav-cta:hover { background: var(--accent-dark) !important; }
  /* Hamburger musí být nad panelem */
  .nav-toggle { position: relative; z-index: 101; }

  /* Hero */
  #hero { padding: 100px 20px 60px; }
  .hero-content { flex-direction: column-reverse; gap: 30px; }
  .hero-photo-wrap { width: 100%; max-width: 320px; align-self: center; }
  .hero-photo { height: 360px; }
  .hero-text { max-width: 100%; }
  .hero-socials { display: none; }
  .hero-bg-text { font-size: 40vw; right: 0; opacity: 0.03; }
  .hero-label { display: none; }

  /* Sekce */
  .section { padding: 70px 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .blog-grid     { grid-template-columns: 1fr; }
  .about-photo   { height: 300px; }
  .about-badge   { bottom: 20px; right: 10px; }

  .ptype-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .ptype-grid { grid-template-columns: 1fr; gap: 14px; }
}


@media (max-width: 1100px) and (min-width: 901px) {
  .ptype-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; }
  .hero-title { font-size: 2.2rem; }
}

/* ── SCROLL TO TOP ────────────────────────────────────────── */
#scrollTop {
  position: fixed;
  bottom: 32px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 900;
  cursor: pointer;
}
#scrollTop svg { width: 18px; height: 18px; }
#scrollTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#scrollTop:hover { background: var(--accent-dark); }

/* ─── LIGHTBOX ─────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox-overlay.lb-active {
  opacity: 1;
}
.lightbox-overlay img {
  max-width: 82vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
@media (min-width: 1024px) {
  .lightbox-overlay img { max-width: 55vw; max-height: 70vh; }
}
.lightbox-overlay.lb-active img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  color: #888;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s;
  user-select: none;
}
.lightbox-close:hover { color: #fff; }

/* Kurzor zoom-in na klikatelných fotkách v journalu */
.journal-hero-img,
.journal-inline-img {
  cursor: zoom-in;
}
