/* Ihrisko je náš svet / The Pitch Is Our World — doplnok k css/styles.css
   Používa premenné a komponenty hlavného webu (--green, --green-dark, --cream, .section, .btn, .stat, .value-card …). */

/* ── Header: jazykový prepínač ako odkazy (na hlavnom webe sú to tlačidlá) ── */
.lang-switch a {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  color: var(--muted);
  text-decoration: none;
}
.lang-switch a[aria-current="true"] {
  background: var(--green-dark);
  color: var(--white);
}
.nav-desktop a[aria-current="page"],
.nav-mobile a[aria-current="page"] {
  color: var(--green-dark);
  font-weight: 700;
}

/* ── Navigačná cesta (Archív › stránka) ── */
.ih-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.ih-crumbs a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
}
.ih-crumbs a:hover {
  text-decoration: underline;
}

/* ── Hero ── */
.ih-hero .hero-lead {
  max-width: 62ch;
  margin-bottom: 0.9rem;
  font-size: 1.02rem;
}
.ih-hero .hero-actions {
  margin-top: 1.5rem;
}
.ih-hero .hero-figure img {
  width: 100%;
  height: auto;
}
@media (min-width: 880px) {
  .ih-hero .hero-inner {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
  }
}

.ih-lead {
  max-width: 760px;
}
.ih-lead p + p {
  margin-top: 0.75rem;
}
.ih-lines {
  white-space: pre-line;
}

/* ── Dva ciele ── */
.ih-goals {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 760px) {
  .ih-goals {
    grid-template-columns: 1fr 1fr;
  }
}
.ih-goal {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.6rem;
}
.ih-goal h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 0.7rem;
}
.ih-goal--camp h3 {
  color: var(--camp-warm);
}
.ih-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ih-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--green-dark);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ih-goal--camp .ih-icon {
  background: rgba(232, 90, 16, 0.12);
}
.ih-goal--camp .ih-icon svg {
  stroke: var(--camp-warm);
}

/* ── Časová os ── */
.ih-timeline {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(15, 20, 16, 0.04);
  padding: 1.6rem 1.4rem;
}
.ih-timeline h3 {
  margin: 0 0 1.4rem;
  font-size: 1.35rem;
}
.ih-tl {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.ih-tl li {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 0.9rem;
  align-items: center;
  padding: 0 0 1.2rem 1.6rem;
}
.ih-tl li::before {
  /* zvislá čiara na mobile */
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: -2px;
  width: 2px;
  background: var(--green-dark);
}
.ih-tl li:last-child::before {
  display: none;
}
.ih-tl li:nth-last-child(2)::before {
  background: repeating-linear-gradient(180deg, rgba(61, 69, 56, 0.45) 0 5px, transparent 5px 10px);
}
.ih-tl .ih-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-dark);
  box-shadow: 0 0 0 3px #fff;
}
.ih-tl svg {
  width: 32px;
  height: 32px;
  stroke: var(--green-dark);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  grid-row: span 2;
}
.ih-tl .ih-date {
  font-weight: 700;
  color: var(--green-dark);
  font-size: 0.95rem;
}
.ih-tl .ih-what {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}
.ih-tl .is-camp svg,
.ih-tl .is-camp .ih-date {
  stroke: var(--camp-warm);
  color: var(--camp-warm);
}
.ih-tl .is-camp .ih-dot {
  background: var(--camp-warm);
}
.ih-tl .is-future svg {
  stroke: rgba(61, 69, 56, 0.55);
}
.ih-tl .is-future .ih-date {
  color: rgba(61, 69, 56, 0.8);
}
.ih-tl .is-future .ih-dot {
  background: #fff;
  border: 2px solid rgba(61, 69, 56, 0.55);
  box-shadow: none;
}
@media (min-width: 860px) {
  .ih-tl {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
  }
  .ih-tl::before,
  .ih-tl::after {
    content: "";
    position: absolute;
    top: 62px;
    height: 2px;
  }
  .ih-tl::before {
    left: 8.33%;
    width: 66.67%;
    background: var(--green-dark);
  }
  .ih-tl::after {
    left: 75%;
    width: 16.67%;
    background: repeating-linear-gradient(90deg, rgba(61, 69, 56, 0.45) 0 6px, transparent 6px 11px);
  }
  .ih-tl li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0.4rem;
  }
  .ih-tl li::before {
    display: none;
  }
  .ih-tl svg {
    margin-bottom: 1.25rem;
  }
  .ih-tl .ih-dot {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 0.9rem;
    z-index: 1;
  }
}

/* ── Čísla ── */
.ih-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.ih-stats .stat {
  padding: 1.1rem 1rem;
}
.ih-stats .stat strong {
  font-size: 1.7rem;
  line-height: 1.1;
  font-weight: 800;
}
.ih-money {
  grid-column: 1 / -1;
  background: var(--green-dark);
  color: var(--white);
  border-radius: 12px;
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ih-money strong {
  font-size: clamp(2.2rem, 5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.05;
}
.ih-money .ih-fx {
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 0.35rem;
}
.ih-money .ih-lbl {
  font-size: 0.92rem;
  opacity: 0.85;
  margin-top: 0.9rem;
}
@media (min-width: 860px) {
  .ih-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .ih-money {
    grid-column: span 2;
    grid-row: span 2;
  }
}
.ih-transparency {
  margin-top: 1.5rem;
  padding: 1.5rem 1.6rem;
}
.ih-transparency h3 {
  color: var(--ink);
}
.ih-transparency p + p {
  margin-top: 0.6rem;
}

/* ── Citáty ── */
.ih-quote-dark {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin: 0;
}
.ih-quote-dark p {
  color: #fff;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 0.9rem;
}
.ih-quote-dark footer,
.ih-quote-hero footer,
.ih-quote-card footer {
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
}
.ih-quote-dark footer {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
}
.ih-quote-hero {
  margin: 0;
  border-left: 4px solid var(--green-dark);
  background: var(--green-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.4rem;
}
.ih-quote-hero p {
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.6;
  margin: 0 0 0.7rem;
}
.ih-quote-hero footer {
  color: var(--green-dark);
  margin-top: 0.9rem;
}
.ih-quotes {
  display: grid;
  gap: 1rem;
}
@media (min-width: 760px) {
  .ih-quotes {
    grid-template-columns: 1fr 1fr;
  }
  .ih-quote-dark {
    padding: 2.6rem 3rem;
  }
  .ih-quote-hero {
    padding: 1.9rem 2.1rem;
  }
}
.ih-quote-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(15, 20, 16, 0.04);
  padding: 1.35rem;
}
.ih-quote-card p {
  font-style: italic;
  line-height: 1.55;
  margin: 0 0 0.6rem;
  font-size: 0.97rem;
}
.ih-quote-card footer {
  color: var(--muted);
  margin-top: 0.8rem;
}
.ih-pull {
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  font-weight: 600;
  font-style: italic;
  color: var(--green-dark);
  line-height: 1.35;
  margin: 0.4rem 0 1rem !important;
}
.ih-subhead {
  font-size: 1.25rem;
  margin: 2.5rem 0 1rem;
}
.ih-gap {
  margin-bottom: 1rem;
}

/* ── Ľudia ── */
.ih-photo {
  margin: 0 0 2rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(69, 134, 42, 0.22);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ih-photo img {
  width: 100%;
  height: auto;
}
.ih-photo .ih-thumb {
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}
.ih-photo .ih-thumb img {
  height: auto;
}
.ih-photo .ih-thumb:hover img {
  transform: scale(1.02);
}
.ih-photo figcaption {
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
@media (min-width: 860px) {
  .ih-cols {
    columns: 2;
    column-gap: 3rem;
  }
  .ih-cols p {
    break-inside: avoid;
  }
}

/* ── Kúrenie ── */
.ih-heat-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2rem;
}
.ih-heat-head .section-head {
  margin-bottom: 0;
}
.ih-heat-head .section-head p + p {
  margin-top: 0.4rem;
}
.ih-badge-warm {
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(232, 90, 16, 0.14);
  color: var(--camp-warm-dark);
}
.ih-beforeafter {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .ih-beforeafter {
    grid-template-columns: 1fr 1fr;
  }
}
.ih-ba {
  position: relative;
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(15, 20, 16, 0.05);
  overflow: hidden;
}
.ih-ba .ih-thumb {
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 4 / 3;
}
.ih-ba-label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: rgba(15, 20, 16, 0.78);
  color: #fff;
  pointer-events: none;
}
.ih-ba-label.is-after {
  background: var(--green-dark);
}
.ih-ba figcaption {
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.ih-beforeafter .placeholder {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.ih-beforeafter .placeholder strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

/* ── Médiá ── */
.ih-media {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 860px) {
  .ih-media {
    grid-template-columns: 1.35fr 1fr;
  }
}
.ih-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(15, 20, 16, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ih-video {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-decoration: none;
}
.ih-video svg {
  width: 64px;
  height: 64px;
}
a.ih-video:hover {
  color: #fff;
}
.ih-video-player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 832 / 464;
  background: var(--ink);
}
.ih-source {
  font-size: 0.82rem !important;
  color: var(--muted);
  opacity: 0.85;
}
.ih-card-body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.ih-card-body .camp-badge {
  margin-bottom: 0.2rem;
}
.ih-card-body .camp-badge.warm {
  background: rgba(232, 90, 16, 0.14);
  color: var(--camp-warm-dark);
}
.ih-card-title {
  font-weight: 600;
  font-size: 1.02rem;
  margin: 0;
}
.ih-article-quote {
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.4;
  margin: 0;
}
.ih-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.ih-card-body .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ── Odkaz projektu ── */
.ih-legacy {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .ih-legacy {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .ih-legacy {
    grid-template-columns: repeat(4, 1fr);
  }
}
.ih-legacy svg {
  width: 26px;
  height: 26px;
  stroke: var(--green-dark);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0.6rem;
}

/* ── Ďakujeme ── */
.ih-thanks {
  text-align: center;
}
.ih-thanks .section-inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ih-thanks img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  margin-bottom: 1.2rem;
}
.ih-thanks h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  margin: 0 0 0.8rem;
}
.ih-thanks p {
  color: var(--muted);
  margin: 0 0 0.8rem;
}
.ih-thanks p.ih-final {
  color: var(--ink);
  font-weight: 600;
  font-size: 1.1rem;
}
.ih-thanks .ih-rule {
  width: 64px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin: 1.2rem 0 1.6rem;
}

/* ── Archív: karta projektu ── */
.ih-archive-card {
  display: grid;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(69, 134, 42, 0.25);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ih-archive-img img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.ih-archive-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  justify-content: center;
}
.ih-archive-body h3 {
  margin: 0;
  font-size: 1.5rem;
}
.ih-archive-body p {
  margin: 0;
  color: var(--muted);
}
.ih-archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
@media (min-width: 760px) {
  .ih-archive-card {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .ih-archive-body {
    padding: 2rem 2.2rem;
  }
}

/* ── Náhľady fotografií + lightbox ── */
.ih-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 860px) {
  .ih-thumbs {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
  }
}
.ih-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--green-soft);
  box-shadow: 0 6px 18px rgba(15, 20, 16, 0.08);
}
.ih-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.ih-thumb:hover img,
.ih-thumb:focus-visible img {
  transform: scale(1.06);
}
.ih-thumb:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.ih-lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 14, 11, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 12px;
}
.ih-lb.open {
  display: flex;
}
.ih-lb img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.ih-lb button {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.ih-lb button:hover {
  background: rgba(255, 255, 255, 0.26);
}
.ih-lb-close {
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
}
.ih-lb-prev,
.ih-lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  font-size: 28px;
}
.ih-lb-prev {
  left: 8px;
}
.ih-lb-next {
  right: 8px;
}
.ih-lb-count {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}
@media (min-width: 860px) {
  .ih-lb {
    padding: 56px 80px;
  }
  .ih-lb-prev,
  .ih-lb-next {
    width: 52px;
    height: 52px;
  }
  .ih-lb-prev {
    left: 14px;
  }
  .ih-lb-next {
    right: 14px;
  }
}
