/* Final idea s.r.o. — shared styles */

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

:root {
  --green: #00FF00;
  --blue: #1a1aff;
  --black: #000;
  --white: #fff;
  --gray: #555;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

/* ── NAV ────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: var(--black);
  border-bottom: 1px solid #111;
}

.logo {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
}

.logo:hover {
  background: linear-gradient(90deg, #ff0040, #ff8a00, #ffee00, #00ff59, #00c3ff, #7a00ff, #ff00c8, #ff0040);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logo-rainbow 1.4s linear infinite;
}

@keyframes logo-rainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

.logo sup { font-size: .55em; vertical-align: super; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-links a { display: flex; }

.social-links svg {
  width: 18px; height: 18px;
  fill: var(--white);
  transition: fill .2s;
}

.social-links a:hover svg {
  fill: var(--green);
  animation: icon-rainbow 1.4s linear infinite;
}

@keyframes icon-rainbow {
  0% { filter: hue-rotate(0deg) saturate(4); }
  100% { filter: hue-rotate(360deg) saturate(4); }
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--white);
  transition: transform .3s, opacity .3s, background .2s;
}

.menu-toggle:hover span {
  background: var(--green);
  animation: icon-rainbow 1.4s linear infinite;
}

/* ── LANG TOGGLE ─────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.lt-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  color: #444;
  transition: color .2s;
  line-height: 1;
}

.lt-track {
  position: relative;
  width: 42px;
  height: 22px;
  background: var(--green);
  border-radius: 11px;
  display: block;
  flex-shrink: 0;
}

.lang-toggle:hover .lt-track {
  animation: icon-rainbow 1.4s linear infinite;
}

.lt-thumb {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--black);
  border-radius: 50%;
  top: 2px;
  transition: left .25s ease;
}

/* CZ active — thumb left */
.lang-toggle[data-lang="cz"] .lt-thumb { left: 2px; }
.lang-toggle[data-lang="cz"] .lt-cz { color: var(--green); }

/* EN active — thumb right */
.lang-toggle[data-lang="en"] .lt-thumb { left: 22px; }
.lang-toggle[data-lang="en"] .lt-en { color: var(--green); }

/* ── OVERLAY MENU ────────────────────────────── */
.overlay-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 64px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.overlay-menu.open {
  opacity: 1;
  pointer-events: all;
}

.overlay-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 14px;
  transition: color .15s;
}

.overlay-menu a:hover {
  background: linear-gradient(90deg, #ff0040, #ff8a00, #ffee00, #00ff59, #00c3ff, #7a00ff, #ff00c8, #ff0040);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logo-rainbow 1.4s linear infinite;
}

.overlay-menu .menu-social {
  margin-top: 52px;
  display: flex;
  gap: 22px;
}

.overlay-menu .menu-social svg { fill: var(--white); width: 22px; height: 22px; }
.overlay-menu .menu-social a:hover svg {
  fill: var(--green);
  animation: icon-rainbow 1.4s linear infinite;
}

/* ── SLIDESHOW ───────────────────────────────── */
.slideshow {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  background: var(--black);
}

.slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.slideshow .slide.active { opacity: 1; }

.slideshow .slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ── HERO TAGLINE ────────────────────────────── */
.hero-tagline {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 10;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(62px, 10vw, 153px);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1;
  pointer-events: none;
  animation: slide-lr 18s linear infinite;
}

@keyframes slide-lr {
  0%   { transform: translateY(-50%) translateX(100vw); }
  100% { transform: translateY(-50%) translateX(-100%); }
}

/* ── TILES ───────────────────────────────────── */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

@media (max-width: 768px) {
  .tiles { grid-template-columns: 1fr; }
  .tile-label { font-size: 35px; }
}

.tile {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--black);
  text-decoration: none;
  display: block;
  -webkit-tap-highlight-color: transparent;
}

.tile-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity .4s;
}

.tile:hover .tile-canvas { opacity: .75; }

.tile-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: clamp(15px, 1.7vw, 22px);
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
  background: none;
  transition: color .3s, letter-spacing .3s;
}

.tile:hover .tile-label {
  letter-spacing: .12em;
  background: linear-gradient(90deg, #ff0040, #ff8a00, #ffee00, #00ff59, #00c3ff, #7a00ff, #ff00c8, #ff0040);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logo-rainbow 1.4s linear infinite;
}

/* ── CONTACT / FOOTER ────────────────────────── */
.contact {
  position: relative;
  padding: 80px 64px 56px;
  background: var(--black);
  border-top: 1px solid #111;
}

.footer-logo-link {
  position: absolute;
  top: 80px;
  right: 64px;
  width: 102px;
  height: 102px;
  display: block;
}

.footer-logo {
  width: 100%;
  height: 100%;
  animation: icon-rainbow 2.4s linear infinite;
}

.contact .footer-logo-link,
.contact .footer-logo-link:hover {
  border-bottom: none;
  text-decoration: none;
}

.contact h2 {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 32px;
  color: var(--green);
}

.contact p {
  font-size: 15px;
  line-height: 2;
  color: #ccc;
}

.contact strong { color: var(--white); }

.contact a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid #333;
  transition: color .2s, border-color .2s;
}

.contact a:hover {
  border-color: var(--green);
  background: linear-gradient(90deg, #ff0040, #ff8a00, #ffee00, #00ff59, #00c3ff, #7a00ff, #ff00c8, #ff0040);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logo-rainbow 1.4s linear infinite;
}

.contact-cols {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.contact-cols p {
  position: relative;
  padding-left: 22px;
}

.pulse-dot {
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-breathe 2.4s ease-in-out infinite;
}

@keyframes pulse-breathe {
  0%, 100% { opacity: .25; transform: scale(.75); }
  50% { opacity: 1; transform: scale(1); }
}

.contact .role {
  display: block;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--gray);
  text-transform: uppercase;
}

.copyright {
  margin-top: 40px;
  padding-top: 14px;
  border-top: 1px solid #0a0a0a;
  font-size: 4.5px;
  letter-spacing: .1em;
  color: #333;
  text-transform: uppercase;
}

.copyright a { color: var(--gray); text-decoration: none; transition: color .2s; }
.copyright a:hover { color: var(--green); }

/* ── INNER PAGE ──────────────────────────────── */
.inner-hero {
  width: 100%;
  height: 63vh;
  overflow: hidden;
  position: relative;
  background: var(--black);
}

.inner-hero .slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.inner-hero .slide.active { opacity: 1; }

.inner-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.content-wrap {
  position: relative;
  background: var(--black);
  overflow: hidden;
}

.content-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .45;
  pointer-events: none;
}

.section-title {
  position: relative;
  z-index: 1;
  font-size: clamp(32px, 5.5vw, 68px);
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1.1;
  padding: 96px 64px 0;
  margin-bottom: 0;
  transition: color .15s;
}

.section-title:hover {
  background: linear-gradient(90deg, #ff0040, #ff8a00, #ffee00, #00ff59, #00c3ff, #7a00ff, #ff00c8, #ff0040);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logo-rainbow 1.4s linear infinite;
}

/* ── STATS INFOGRAPHIC (single chart) ────────── */
.stats-wrap {
  position: relative;
  background: var(--black);
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats-cat {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 42px;
  padding-bottom: 16px;
  border-bottom: 1px solid #161616;
  width: 100%;
  max-width: 940px;
}

.chart-wrap {
  width: 100%;
  max-width: 940px;
}

.chart-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
}

.chart-value {
  width: 160px;
  flex-shrink: 0;
  white-space: nowrap;
  text-align: right;
  font-size: 44px;
  font-weight: 900;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stats-wrap-lg {
  position: relative;
  padding: 140px 64px;
  overflow: hidden;
}

.stats-wrap-lg .chart-wrap { max-width: 1242px; }

.stats-wrap-lg .chart-row { gap: 32px; margin-bottom: 40px; }

.stats-wrap-lg .chart-value {
  width: 340px;
  font-size: clamp(39px, 4.9vw, 67px);
}

.stats-wrap-lg .chart-bar-track { height: 14px; }

.stats-wrap-lg .chart-label { font-size: 19px; width: 320px; }

.stats-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .5;
  pointer-events: none;
}

.stats-wrap-lg .chart-wrap { position: relative; z-index: 1; }

.chart-bar-track {
  flex: 1;
  min-width: 60px;
  height: 12px;
  background: #161616;
  border-radius: 6px;
  overflow: hidden;
}

.chart-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 6px;
  background: var(--green);
  transition: width 1.7s cubic-bezier(.16,.84,.44,1);
}

.chart-label {
  width: 260px;
  flex-shrink: 0;
  font-size: 17px;
  letter-spacing: .02em;
  color: var(--white);
  font-weight: 700;
}

@media (max-width: 768px) {
  .chart-row { flex-wrap: wrap; gap: 8px 16px; margin-bottom: 30px; }
  .chart-value { order: 1; width: auto; font-size: 34px; }
  .chart-bar-track { order: 2; flex: 1; }
  .chart-label { order: 3; width: 100%; }
  .stats-wrap-lg { padding: 90px 24px; }
  .stats-wrap-lg .chart-value { font-size: 31px; width: auto; }
  .stats-wrap-lg .chart-label { width: 100%; font-size: 15px; }
}

@media (max-width: 600px) {
  .stats-wrap { padding-left: 24px; padding-right: 24px; }
}

.inner-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 32px 64px 48px;
}

.inner-content p {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.9;
  color: #ccc;
  margin-bottom: 28px;
}

.inner-content a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--green);
  transition: opacity .2s;
}

.inner-content a:hover {
  background: linear-gradient(90deg, #ff0040, #ff8a00, #ffee00, #00ff59, #00c3ff, #7a00ff, #ff00c8, #ff0040);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logo-rainbow 1.4s linear infinite;
}

@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .contact, .inner-content, .section-title { padding-left: 24px; padding-right: 24px; }
  .overlay-menu { padding: 80px 32px; }
  .overlay-menu a { margin-bottom: 18px; }
  .contact-cols { flex-direction: column; gap: 32px; }
  .footer-logo-link { width: 84px; height: 84px; top: 80px; right: 24px; }
  .slideshow { height: 50vh; }
  .inner-hero { height: 35vh; }
}
