/* ═══════════════════════════════════════════════════════════════
   Go-on services — grafický rozcestník
   Statická verze (bez buildu) pro nasazení na IIS
   ═══════════════════════════════════════════════════════════════ */

/* ─── Brand paleta z go_on_logo.svg ─── */
:root {
  --red:        #ee3123;
  --red-rgb:    238, 49, 35;
  --amber:      #faa619;
  --amber-rgb:  250, 166, 25;
  --blue:       #14469e;
  --blue-rgb:   20, 70, 158;
  --blue-light: #5a9fff;
  --dark:       #231f20;

  /* Přechod šířek panelů při hoveru */
  --panel-transition: width 0.65s cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--dark);
  font-family: "Barlow Condensed", sans-serif;
}

/* ─── Rozdělení obrazovky ─── */
.split {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.panel {
  position: relative;
  flex-shrink: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: var(--panel-transition);
}

/* Desktop: hover roztáhne aktivní panel na 62 %, druhý na 38 % */
.split:has(.panel:hover) .panel { width: 38%; }
.split:has(.panel:hover) .panel:hover { width: 62%; }

/* Vrstvy pozadí */
.layer {
  position: absolute;
  inset: 0;
  display: block;
}

.photo {
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 1s ease;
}

.panel:hover .photo { transform: scale(1.05); }

/* ─── Horizontální scan ─── */
.scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
}

/* ─── Boční akcentní pruh ─── */
.accent {
  position: absolute;
  top: 15%;
  bottom: 15%;
  width: 3px;
  opacity: 0.35;
  transition: opacity 0.5s ease;
}

.accent--left  { left: 0; }
.accent--right { right: 0; }

.panel:hover .accent { opacity: 1; }

/* ═══ KOMINICTVÍ ═══ */
.panel--chimney .photo {
  background-image: url(../img/nove.jpg);
  filter: grayscale(100%) brightness(0.45) contrast(1.1);
}

/* Duotone červený překryv — tlačeno do červené, minimální průnik jantarové */
.panel--chimney .duotone {
  background: linear-gradient(160deg,
    rgba(18, 4, 2, 0.97) 0%,
    rgba(var(--red-rgb), 0.82) 45%,
    rgba(180, 20, 10, 0.6) 65%,
    rgba(10, 2, 1, 0.97) 100%);
  mix-blend-mode: multiply;
}

/* Druhý červený průchod — zesílení červeného tónu */
.panel--chimney .glow {
  background: radial-gradient(ellipse 80% 70% at 50% 50%,
    rgba(var(--red-rgb), 0.25) 0%, transparent 70%);
  pointer-events: none;
}

/* Animovaný majákový sweep */
.panel--chimney .beacon {
  background: conic-gradient(from 0deg at 110% 50%,
    transparent 0deg,
    rgba(var(--amber-rgb), 0.04) 15deg,
    transparent 30deg);
  transform-origin: 110% 50%;
  animation: beaconSweep 8s linear infinite;
  pointer-events: none;
}

.scan--chimney {
  background: linear-gradient(90deg, transparent,
    rgba(var(--red-rgb), 0.5),
    rgba(var(--amber-rgb), 0.6),
    transparent);
  animation: scanDown 9s ease-in-out infinite;
}

.accent--left {
  background: linear-gradient(180deg, transparent, var(--red), var(--amber), transparent);
}

/* ═══ DIVIDER ═══ */
.divider {
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  width: 1px;
  align-self: stretch;
  opacity: 0.6;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--red) 20%,
    rgba(255, 255, 255, 0.15) 50%,
    var(--blue) 80%,
    transparent 100%);
}

/* ═══ IT SEKTOR ═══ */
.panel--it .photo--dc {
  background-image: url(../img/datacenter.jpg);
  filter: brightness(0.35) saturate(0.8);
}

.panel--it .photo--cables {
  background-image: url(../img/cables.jpg);
  filter: brightness(0.55) saturate(1.5);
  mix-blend-mode: screen;
}

.panel--it .shade {
  background: linear-gradient(180deg,
    rgba(2, 6, 22, 0.82) 0%,
    rgba(2, 8, 28, 0.55) 50%,
    rgba(2, 6, 22, 0.88) 100%);
}

.scan--it {
  background: linear-gradient(90deg, transparent,
    rgba(var(--blue-rgb), 0.6),
    rgba(100, 180, 255, 0.5),
    transparent);
  animation: scanDown 12s ease-in-out 4s infinite;
}

.accent--right {
  background: linear-gradient(180deg, transparent, var(--blue), var(--blue-light), transparent);
}

/* Pulsující kruhy */
.ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(var(--blue-rgb), 0.25);
  transform: translate(-50%, -50%);
  animation: ringOut 5s infinite ease-out;
  pointer-events: none;
}

.ring:nth-of-type(1) { left: 72%; top: 35%; animation-delay: 0s; }
.ring:nth-of-type(2) { left: 30%; top: 65%; animation-delay: 1.5s; }
.ring:nth-of-type(3) { left: 85%; top: 70%; animation-delay: 3s; }

/* Signály: levý horní → pravý dolní roh, malé, 25 % opacity */
.signals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.signal {
  position: absolute;
  width: 10px;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(220, 240, 255, 0.9) 70%, #fff);
  box-shadow: 0 0 3px 1px rgba(180, 225, 255, 0.4);
  opacity: 0.25;
  animation: cableSignal linear infinite;
  will-change: transform;
}

.signal:nth-child(1)  { left:  2%; top:  5%; animation-duration: 3.2s; animation-delay: 0s;   }
.signal:nth-child(2)  { left: 15%; top:  0%; animation-duration: 2.8s; animation-delay: 0.7s; }
.signal:nth-child(3)  { left: 30%; top:  0%; animation-duration: 3.5s; animation-delay: 1.5s; }
.signal:nth-child(4)  { left: 45%; top:  0%; animation-duration: 2.6s; animation-delay: 0.3s; }
.signal:nth-child(5)  { left: 60%; top:  0%; animation-duration: 3.1s; animation-delay: 2.1s; }
.signal:nth-child(6)  { left: 75%; top:  0%; animation-duration: 2.9s; animation-delay: 1s;   }
.signal:nth-child(7)  { left:  0%; top: 20%; animation-duration: 3.4s; animation-delay: 1.8s; }
.signal:nth-child(8)  { left:  0%; top: 40%; animation-duration: 2.7s; animation-delay: 0.5s; }
.signal:nth-child(9)  { left:  0%; top: 60%; animation-duration: 3s;   animation-delay: 2.5s; }
.signal:nth-child(10) { left:  0%; top: 78%; animation-duration: 2.5s; animation-delay: 1.3s; }
.signal:nth-child(11) { left: 20%; top:  8%; animation-duration: 3.3s; animation-delay: 2.9s; }
.signal:nth-child(12) { left: 50%; top:  3%; animation-duration: 2.8s; animation-delay: 0.9s; }

/* ═══ OBSAH PANELU ═══ */
.content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 6vw, 5rem);
}

.content--right {
  align-items: flex-end;
  text-align: right;
}

/* Nadřazená kategorie */
.category {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.3s both;
}

.category::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.panel--chimney .category { color: var(--amber); }
.panel--it .category      { color: var(--blue-light); }

/* Hlavní nadpis */
.headline {
  display: block;
  margin: 1rem 0 1.5rem;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
}

.panel--chimney .headline { text-shadow: 0 0 80px rgba(var(--red-rgb), 0.5); }
.panel--it .headline      { text-shadow: 0 0 80px rgba(var(--blue-rgb), 0.6); }

.panel--chimney .hl { color: var(--amber); }
.panel--it .hl      { color: var(--blue-light); }

.domain {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.45em;
  font-weight: 400;
  letter-spacing: 0.08em;
}

/* Výčet služeb */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  max-width: 20rem;
  margin-bottom: 2.5rem;
}

.service {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: Inter, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.panel--chimney .service { color: rgba(var(--amber-rgb), 0.6); }
.panel--it .service      { color: rgba(100, 180, 255, 0.6); justify-content: flex-end; }

.dash {
  display: inline-block;
  flex-shrink: 0;
  height: 1px;
}

.panel--chimney .dash--pre { width: 10px; background: var(--red); }

/* IT: na desktopu je pomlčka za textem, na mobilu před ním */
.panel--it .dash--pre  { display: none; }
.panel--it .dash--post { width: 12px; background: var(--blue); }

/* Tlačítko */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1px;
  background: transparent;
  box-shadow: none;
  transition: all 0.4s ease;
}

.cta__label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.4s;
}

.cta__arrow {
  opacity: 0.3;
  transition: all 0.4s ease;
}

.panel--chimney .cta__arrow * { stroke: var(--red); }
.panel--it .cta__arrow *      { stroke: var(--blue); }

.panel:hover .cta__label { color: #fff; }
.panel:hover .cta__arrow { opacity: 1; transform: translateX(4px); }

.panel--chimney:hover .cta {
  border-color: var(--red);
  background: rgba(var(--red-rgb), 0.1);
  box-shadow: 0 0 32px rgba(var(--red-rgb), 0.3);
}

.panel--it:hover .cta {
  border-color: var(--blue);
  background: rgba(var(--blue-rgb), 0.1);
  box-shadow: 0 0 32px rgba(var(--blue-rgb), 0.3);
}

/* ═══ BRAND HEADER — skutečné logo ═══ */
.brand {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.75) 0%, transparent 100%);
}

.brand__logo {
  flex-shrink: 0;
  width: 307px;
  height: 72px;
  opacity: 0.92;
}

/* ═══ BOTTOM HINT ═══ */
.hint {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.hint span {
  font-family: Inter, sans-serif;
  font-size: 1.16rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #e1e1e1;
}

/* ═══════════════ MOBIL (< 700 px) ═══════════════ */
@media (max-width: 699px) {
  .split { flex-direction: column; }

  .panel,
  .split:has(.panel:hover) .panel,
  .split:has(.panel:hover) .panel:hover {
    width: 100%;
    height: 50vh;
    height: 50dvh;
  }

  .divider {
    width: 100%;
    height: 1px;
    align-self: auto;
    background: linear-gradient(90deg,
      transparent,
      var(--red),
      rgba(255, 255, 255, 0.15),
      var(--blue),
      transparent);
  }

  .content,
  .content--right {
    align-items: flex-start;
    text-align: left;
    padding: 1.25rem 1.5rem;
  }

  .category { display: none; }

  .headline {
    margin: 0.4rem 0 0.6rem;
    font-size: 1.7rem;
  }

  .domain { font-size: 0.5em; }

  .services { margin-bottom: 1rem; }

  .service { font-size: 0.6rem; }

  .panel--it .service { justify-content: flex-start; }

  /* IT: na mobilu pomlčka před textem, poslední dvě služby se nezobrazují */
  .panel--it .dash--pre  { display: inline-block; width: 10px; background: var(--blue); }
  .panel--it .dash--post { display: none; }
  .service--desktop      { display: none; }

  .brand__logo { width: 154px; height: 36px; }
}

/* ═══════════════ ANIMACE ═══════════════ */
@keyframes beaconSweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes scanDown {
  0%   { top: -1px; opacity: 0; }
  5%   { opacity: 1; }
  92%  { opacity: 0.7; }
  100% { top: 100%; opacity: 0; }
}

@keyframes ringOut {
  0%   { transform: translate(-50%, -50%) scale(0.1); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(3);   opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cableSignal {
  0%   { transform: translate(0, 0);                                   opacity: 0;    }
  5%   { opacity: 0.25; }
  90%  { opacity: 0.25; }
  100% { transform: translate(calc(100vw + 60px), calc(100vh + 60px)); opacity: 0;    }
}
