/* ============================================================
   PMH Leaflets page — namespacované styly pouze pro /ke-stazeni/letaky/
   Scope: .pmh-leaflets-*
   Parent prefix .pmh-leaflets-page zajišťuje izolaci od ostatních stránek.
   ============================================================ */

/* ---- Page root ---- */
.pmh-leaflets-page {
  background: transparent;
  color: #1b1f27;
  padding: 80px 24px 120px;
}

/* ---- Centered column ---- */
.pmh-leaflets-page .pmh-leaflets-inner {
  max-width: 1060px;
  margin: 0 auto;
}

/* ============================================================
   Back link — nad H1
   ============================================================ */
.pmh-leaflets-page .pmh-leaflets-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.14s ease;
}

.pmh-leaflets-page .pmh-leaflets-back:hover {
  color: #006AA5;
}

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

.pmh-leaflets-page .pmh-leaflets-header__title {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: #111827;
}

/* Accent bar under H1 */
.pmh-leaflets-page .pmh-leaflets-header__title::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: #006AA5;
  border-radius: 2px;
  margin-top: 20px;
}

/* ============================================================
   Grid — 3 karty vedle sebe
   ============================================================ */
.pmh-leaflets-page .pmh-leaflets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

/* ============================================================
   Card
   ============================================================ */
.pmh-leaflets-page .pmh-leaflets-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pmh-leaflets-page .pmh-leaflets-card:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}

/* ---- Preview image area ---- */
.pmh-leaflets-page .pmh-leaflets-card__media {
  width: 100%;
  background: #f3f4f6;
  overflow: hidden;
  /* A5 portrait ratio ≈ 1:1.41 */
  aspect-ratio: 1 / 1.35;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pmh-leaflets-page .pmh-leaflets-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.pmh-leaflets-page .pmh-leaflets-card:hover .pmh-leaflets-card__img {
  transform: scale(1.02);
}

/* ---- Apollo modifier — méně zoom, celý obsah viditelný ---- */
.pmh-leaflets-page .pmh-leaflets-card__media--apollo .pmh-leaflets-card__img {
  object-fit: contain;
  padding: 12px;
}

.pmh-leaflets-page .pmh-leaflets-card:hover .pmh-leaflets-card__media--apollo .pmh-leaflets-card__img {
  transform: scale(1.01);
}

/* ---- Card body ---- */
.pmh-leaflets-page .pmh-leaflets-card__body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

/* ---- Title — H2 uvnitř karty ---- */
.pmh-leaflets-page .pmh-leaflets-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #111827;
}

/* ---- Actions row ---- */
.pmh-leaflets-page .pmh-leaflets-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ============================================================
   Buttons
   ============================================================ */
.pmh-leaflets-page .pmh-leaflets-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

/* Primary — filled gradient, barevně sjednoceno s .pmh-pill (styles.css):
   linear-gradient(135deg, #006AA5, #A32A27) — PMH blue → PMH red */
.pmh-leaflets-page .pmh-leaflets-btn--primary {
  background: #006AA5;
  color: #fff;
  border: none;
  transition: background 0.15s ease;
}

.pmh-leaflets-page .pmh-leaflets-btn--primary:hover {
  background: #005a8c;
}

/* Secondary — outlined */
.pmh-leaflets-page .pmh-leaflets-btn--secondary {
  background: transparent;
  color: #374151;
  border: 1.5px solid #d1d5db;
}

.pmh-leaflets-page .pmh-leaflets-btn--secondary:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #111827;
}

/* Focus-visible — keyboard navigace */
.pmh-leaflets-page .pmh-leaflets-btn:focus-visible {
  outline: 2px solid #006AA5;
  outline-offset: 3px;
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet — 2 sloupce */
@media (max-width: 900px) {
  .pmh-leaflets-page .pmh-leaflets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Mobil — 1 sloupec */
@media (max-width: 560px) {
  .pmh-leaflets-page {
    padding: 52px 16px 80px;
  }

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

  .pmh-leaflets-page .pmh-leaflets-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pmh-leaflets-page .pmh-leaflets-card__body {
    padding: 20px 20px 24px;
  }

  .pmh-leaflets-page .pmh-leaflets-btn {
    flex: 1;
    justify-content: center;
  }
}
