/* 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 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(--blue); }

.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(--blue); }

/* ── 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;
}

.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 { color: var(--blue); }

.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(--blue); }

/* ── 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;
  filter: brightness(.65);
}

/* ── 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: 16/9;
  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(13px, 1.4vw, 18px);
  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 {
  color: var(--blue);
  letter-spacing: .12em;
}

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

.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 { color: var(--green); border-color: var(--green); }

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

.copyright {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #111;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--gray);
  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: 90vh;
  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;
  filter: brightness(.55);
}

.inner-content {
  max-width: 760px;
  padding: 96px 64px 80px;
}

.inner-content h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 48px;
  line-height: 1.1;
}

.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 { opacity: .7; }

@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .contact, .inner-content { padding-left: 24px; padding-right: 24px; }
  .overlay-menu { padding: 80px 32px; }
  .contact-cols { flex-direction: column; gap: 32px; }
  .slideshow, .inner-hero { height: 50vh; }
}
