/*
 * Súbor: css/components/warranty-process.css
 * Obsah: Fotografické pozadie procesu, vrstvy prezentácie a samostatná prezentácia obnovy pozemku s textom nad fotografiami.
 * Použitie: index.html, havarie-a-opravy-inzinierskych-sieti.html a rodina prípojok; samostatná prezentácia v inzinierske-siete-a-pripojky-pezinok.html.
 * Zapojenie: Po css/main.css; presné poradie uvádza css/README.md.
 * Závislosti: css/main.css, jeho farebné premenné a triedy komponentu.
 */

.proof-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0 48px;
  background: #252923;
  color: #fff;
}

.proof-slideshow {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
}

.proof-slides {
  position: absolute;
  inset: 0;
}

.proof-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}

.proof-slide.is-active {
  opacity: 1;
}

/* Text nad fotografiami; rovnaké prelínanie bez prekrytia obrázkov. */
.site-restoration {
  padding-top: clamp(40px, 5vw, 72px);
}

.site-restoration__copy {
  max-width: 1000px;
  margin: 0 auto clamp(32px, 4vw, 56px);
}

.site-restoration__copy h2 {
  margin: 0 0 24px;
}

.site-restoration__copy p {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
}

.site-restoration__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-top: 32px;
}

.site-restoration__details h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.2vw, 28px);
}

.proof-slideshow--standalone {
  position: relative;
  z-index: auto;
  width: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--palette-dark);
}

.proof-slideshow--standalone .proof-slides {
  position: relative;
  aspect-ratio: 16 / 9;
}

.proof-slideshow__counter {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(18 24 21 / 88%);
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.proof-slideshow__info {
  position: relative;
  padding: 20px;
  color: #fff;
}

.proof-slideshow__caption {
  margin: 0;
  font-weight: 600;
}

@media (max-width: 767px) {
  .site-restoration__details {
    grid-template-columns: minmax(0, 1fr);
  }

  .proof-slideshow--standalone .proof-slides {
    aspect-ratio: 4 / 3;
  }
}

.proof-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(16 21 18 / 18%), rgb(16 21 18 / 42%));
  pointer-events: none;
}

.proof-band-inner {
  display: grid;
  min-height: 680px;
  align-content: space-between;
  gap: 96px;
}

.proof-band-copy {
  max-width: 760px;
  padding: 32px 36px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 16px;
  background: rgb(18 24 21 / 78%);
}

.proof-band .eyebrow {
  margin-top: 0;
  color: #e0cfb2;
}

.proof-band h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.18;
}

.proof-band-lead {
  margin: 0;
  color: #f0efeb;
  font-size: 17px;
  line-height: 1.65;
}

.proof-band-lead + .proof-band-lead {
  margin-top: 24px;
}

.proof-band-lead--secondary {
  color: #c2c5c1;
  font-size: 15px;
}

.proof-points {
  --point-gap: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--point-gap);
  width: 100%;
}

.proof-point {
  position: relative;
  justify-self: center;
  width: 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  aspect-ratio: 1;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 12px;
  background: rgb(18 24 21 / 78%);
  text-align: center;
}

.proof-point:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: calc(66.6667% + var(--point-gap));
  height: 1px;
  background: rgb(255 255 255 / 50%);
  pointer-events: none;
}

.proof-icon {
  display: block;
  flex-shrink: 0;
}

.proof-icon img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
}

.proof-point h3 {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-size: clamp(12px, 1.3vw, 16px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .proof-point {
    padding: 6px;
    gap: 6px;
  }

  .proof-icon img {
    width: 24px;
    height: 24px;
  }

  .proof-point h3 {
    font-size: 11px;
    line-height: 1.25;
  }
}

@media (max-width: 767px) {
  .proof-band {
    padding: 36px 0;
  }

  .proof-band-inner {
    min-height: 800px;
    gap: 64px;
  }

  .proof-band-copy {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .proof-band-lead {
    font-size: 15px;
  }

  .proof-band-lead--secondary {
    font-size: 14px;
  }

  .proof-points {
    --point-gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-point {
    padding: 6px;
    gap: 6px;
  }

  .proof-point:nth-child(2)::after {
    top: 100%;
    left: 50%;
    width: 1px;
    height: var(--point-gap);
  }

  .proof-icon img {
    width: 24px;
    height: 24px;
  }

  .proof-point h3 {
    font-size: 11px;
    line-height: 1.25;
  }
}

@media (max-width: 380px) {
  .proof-point {
    padding: 4px;
    gap: 4px;
  }

  .proof-icon img {
    width: 18px;
    height: 18px;
  }

  .proof-point h3 {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .proof-slide {
    transition: none;
  }
}
