/* ============================================================
   PMH About Company page — namespacované styly pouze pro /o-spolecnosti/
   Scope: .pmh-about-*
   Parent prefix .pmh-about-page zajišťuje vyšší specificitu
   a zabraňuje kolizi s ostatními stránkami webu.
   ============================================================ */

/* ---- page root ---- */
.pmh-about-page {
  background: transparent;
  color: #1b1f27;
  padding: 72px 24px 0;
}

/* ============================================================
   Video embed — YouTube intro blok (horní část stránky)
   ============================================================ */

/* Centering wrapper — o něco širší než textový sloupec */
.pmh-about-page .pmh-about-video {
  max-width: 840px;
  margin: 0 auto 56px;
}

/* Responzivní 16:9 kontejner */
.pmh-about-page .pmh-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
}

.pmh-about-page .pmh-video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---- centered reading column ---- */
.pmh-about-page .pmh-about-inner {
  max-width: 740px;
  margin: 0 auto;
}

/* ============================================================
   Header — H1
   ============================================================ */
.pmh-about-page .pmh-about-header {
  margin-bottom: 52px;
}

.pmh-about-page .pmh-about-header__title {
  margin: 0;
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: #111827;
}

/* Krátký akcentový proužek pod H1 */
.pmh-about-page .pmh-about-header__title::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: #006AA5;
  border-radius: 2px;
  margin-top: 22px;
}

/* ============================================================
   Content area — HTML from DB
   H2, H3, paragraphs, lists, links
   ============================================================ */
.pmh-about-page .pmh-about-content {
  font-size: 1.0625rem;
  line-height: 1.82;
  color: #374151;
}

/* Neutralize legacy DB wrapper elements */
.pmh-about-page .pmh-about-content section,
.pmh-about-page .pmh-about-content .container {
  display: contents;
}

/* H2 — section headings */
.pmh-about-page .pmh-about-content h2 {
  margin: 3em 0 0.75em;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111827;
}

/* H3 — sub-headings */
.pmh-about-page .pmh-about-content h3 {
  margin: 2em 0 0.5em;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: #1f2937;
}

/* Paragraphs */
.pmh-about-page .pmh-about-content p {
  margin: 0 0 1.55em;
}

.pmh-about-page .pmh-about-content p:last-child {
  margin-bottom: 0;
}

/* Lists */
.pmh-about-page .pmh-about-content ul,
.pmh-about-page .pmh-about-content ol {
  margin: 0 0 1.55em 1.5em;
  padding: 0;
}

.pmh-about-page .pmh-about-content li {
  margin-bottom: 0.45em;
}

/* Links */
.pmh-about-page .pmh-about-content a {
  color: #006AA5;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 106, 165, 0.25);
  padding-bottom: 1px;
  transition: color 0.14s, border-bottom-color 0.14s;
}

.pmh-about-page .pmh-about-content a:hover {
  color: #174ea6;
  border-bottom-color: rgba(23, 78, 166, 0.55);
}

/* Images */
.pmh-about-page .pmh-about-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Strong / em */
.pmh-about-page .pmh-about-content strong {
  font-weight: 600;
  color: #111827;
}

.pmh-about-page .pmh-about-content em {
  font-style: italic;
}

/* Jemný oddělovač před H2 následujícím po textu */
.pmh-about-page .pmh-about-content p + h2 {
  padding-top: 0.65em;
  border-top: 1px solid #e5e7eb;
}

/* DB timeline sekce — skryta; nahrazena statickou .pmh-about-history sekcí */
.pmh-about-page .pmh-about-content .timeline-section {
  display: none;
}

/* ============================================================
   Historie a tradice — horizontální timeline
   ============================================================ */

.pmh-about-page .pmh-about-history {
  max-width: 1400px;
  margin: 72px auto 0;
  padding: 56px 24px 0;
  border-top: 1px solid #e5e7eb;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.pmh-about-page .pmh-about-history__title {
  margin: 0 0 40px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111827;
  text-align: center;
}

/* ---- stage: CSS grid — milestones v řadě, info pod nimi ---- */
.pmh-about-page .pmh-about-arc-stage {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  justify-items: center;
  position: relative;
  width: 100%;
  margin: 0 auto;
}

/* Horizontální spojovací čára přes střed nodů */
.pmh-about-page .pmh-about-arc-stage::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(100% / 14);
  right: calc(100% / 14);
  height: 2px;
  background: #dde3eb;
  z-index: 0;
}

/* ---- Milestone — flex item ---- */
.pmh-about-page .pmh-about-milestone {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

/* ---- Year label — skrytý (rok je v nodu) ---- */
.pmh-about-page .pmh-about-milestone__label {
  display: none;
}

/* ---- Node — kruhový bod ---- */
.pmh-about-page .pmh-about-milestone__node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6b7280;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px #f1f3f5;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

/* ---- Hover ---- */
.pmh-about-page .pmh-about-milestone:not(.is-active):hover .pmh-about-milestone__node {
  background: #d1d5db;
  box-shadow: 0 0 0 2px #e5e7eb, 0 2px 10px rgba(0, 0, 0, 0.09);
  transform: scale(1.08);
}

.pmh-about-page .pmh-about-milestone:not(.is-active):hover .pmh-about-milestone__label {
  color: #6b7280;
}

/* ---- Focus-visible ---- */
.pmh-about-page .pmh-about-milestone:focus-visible {
  outline: none;
}

.pmh-about-page .pmh-about-milestone:focus-visible .pmh-about-milestone__node {
  outline: 2px solid #006AA5;
  outline-offset: 4px;
}

/* ---- Active state ---- */
.pmh-about-page .pmh-about-milestone.is-active .pmh-about-milestone__label {
  color: #006AA5;
  font-weight: 700;
}

.pmh-about-page .pmh-about-milestone.is-active .pmh-about-milestone__node {
  background: linear-gradient(135deg, #006AA5 0%, #A32A27 100%);
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  box-shadow:
    0 0 0 4px #ffffff,
    0 0 0 7px rgba(0, 106, 165, 0.24);
}

/* ---- Info blok pod timeline — zabírá celou šířku gridu ---- */
.pmh-about-page .pmh-about-arc-info {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 48px;
}

.pmh-about-page .pmh-about-arc-info__year {
  margin: 0 0 8px;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.038em;
  color: #006AA5;
}

.pmh-about-page .pmh-about-arc-info__text {
  margin: 0 auto;
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.55;
  max-width: 480px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .pmh-about-page {
    padding: 48px 16px 0;
  }

  .pmh-about-page .pmh-about-video {
    margin-bottom: 40px;
  }

  .pmh-about-page .pmh-video-embed {
    border-radius: 10px;
  }

  .pmh-about-page .pmh-about-header {
    margin-bottom: 36px;
  }

  .pmh-about-page .pmh-about-header__title::after {
    margin-top: 16px;
  }

  .pmh-about-page .pmh-about-content p + h2 {
    padding-top: 0.45em;
  }

  .pmh-about-page .pmh-about-history {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 700px) {
  .pmh-about-page .pmh-about-arc-stage {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding-left: 48px;
  }

  .pmh-about-page .pmh-about-arc-stage::before {
    top: 34px;
    bottom: 120px;
    left: 50px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .pmh-about-page .pmh-about-milestone {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .pmh-about-page .pmh-about-milestone__label {
    display: none;
  }

  .pmh-about-page .pmh-about-milestone__node {
    width: 68px;
    height: 68px;
    font-size: 0.85rem;
  }

  .pmh-about-page .pmh-about-arc-info {
    text-align: left;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
  }

  .pmh-about-page .pmh-about-arc-info__year {
    font-size: 2rem;
  }

  .pmh-about-page .pmh-about-arc-info__text {
    font-size: 0.9375rem;
  }
}

/* ---- FVE / EU dotace sekce ----
   Reads as supporting context (EU subsidy disclosure), not the page's
   main message. Background is the brand blue gradient mixed roughly
   50/50 with white; text colours move to the page's dark palette so
   the section stays legible on the lighter panel. */
.pmh-about-fve {
  background: linear-gradient(135deg, #8099b3 0%, #80a7c6 50%, #80b5d2 100%);
  margin-top: 72px;
  padding: 40px 24px;
  position: relative;
}

/* Hairline separator above the coloured panel — mirrors the rule used
   between content and the history timeline so the FVE block reads as
   a distinct section rather than being glued to the bubbles above. */
.pmh-about-fve::before {
  content: '';
  position: absolute;
  top: -36px;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}

.pmh-about-fve .pmh-about-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.pmh-about-fve__body {
  flex: 1;
  min-width: 0;
}

.pmh-about-fve__title {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
}

.pmh-about-fve__text,
.pmh-about-fve__goal {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1f2937;
}

.pmh-about-fve__note {
  margin: 12px 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5563;
  font-style: italic;
}

.pmh-about-fve__reg {
  margin: 0;
  font-size: 0.78rem;
  color: #6b7280;
}

.pmh-about-fve__logo {
  flex-shrink: 0;
  width: 220px;
}

.pmh-about-fve__logo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 680px) {
  .pmh-about-fve .pmh-about-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .pmh-about-fve__logo {
    width: 180px;
  }
}
