/*
 * Súbor: css/components/service-showcase.css
 * Obsah: Interaktívna infografika služieb s popiskami a spojnicami.
 * Použitie: index.html.
 * Zapojenie: Po css/main.css; presné poradie uvádza css/README.md.
 * Závislosti: css/main.css, jeho farebné premenné a triedy komponentu.
 */

.service-showcase {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: 0;
  background: #fff;
}

.service-showcase__heading {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.service-showcase__heading h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
}

.service-showcase__heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.service-showcase__figure {
  margin: 0;
}

.service-showcase__viewport {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #edf4f8;
}

.service-showcase__viewport:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.service-showcase__art {
  position: relative;
  container-type: inline-size;
  display: block;
  width: 100%;
  min-width: 1040px;
  height: auto;
}

.service-showcase__image {
  display: block;
  width: 100%;
  height: auto;
}

.service-showcase__connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.service-showcase__callout {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  border: 0.119617cqw solid var(--callout-color);
  border-radius: 0.478469cqw;
  background: var(--callout-fill);
  color: #101827;
  font-family: inherit;
  font-size: 1.315789cqw;
  font-weight: 700;
  line-height: 1.090909;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.service-showcase__callout:hover,
.service-showcase__callout:focus-visible {
  background: #fff;
  box-shadow: 0 0 0 0.119617cqw var(--callout-color);
}

.service-showcase__callout:focus-visible {
  outline: 0.179426cqw solid #101827;
  outline-offset: 0.179426cqw;
}

.service-showcase__hint {
  display: none;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 1100px) {
  .service-showcase__hint {
    display: block;
  }
}
