/* ═══════════════════════════════════════════════════
   PODOBLOCK CATALOGUES – PAGE STYLES (v2)
   Same look as the original, refined. Brand colours come
   from the theme (--pdb-*), the rest is local to this page.
   ═══════════════════════════════════════════════════ */
.pb-catalogues-wrap {
  --pb-purple: var(--pdb-purple, #5b57a2);
  --pb-purple-deep: #3A2066;
  --pb-purple-light: #8B6FC0;
  --pb-teal: #3ECDC6;
  --pb-teal-dark: #2BA8A1;
  --pb-off-white: #F0F1F5;
  --pb-dark: #1A1432;
  --pb-gray: #6B6880;

  color: var(--pb-dark);
  overflow-x: hidden;
}

.pb-catalogues-wrap *,
.pb-catalogues-wrap *::before,
.pb-catalogues-wrap *::after {
  box-sizing: border-box;
}

/* no underlines anywhere on this page, also on hover/focus */
.pb-catalogues-wrap a,
.pb-catalogues-wrap a:hover,
.pb-catalogues-wrap a:focus,
.pb-catalogues-wrap a:active,
.pb-catalogues-wrap a:hover *,
.pb-catalogues-wrap a:focus * {
  text-decoration: none;
}

.pb-catalogues-wrap a:focus-visible {
  outline: 3px solid var(--pb-teal);
  outline-offset: 4px;
}

/* ── SECTION ── */
.pb-catalogues-section {
  padding: 6rem 2rem 4rem;
  max-width: 1170px;
  margin: 0 auto;
}

.pb-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* h1 for accessibility/SEO, styled exactly like the former h2 */
.pb-catalogues-wrap .pb-section-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--pb-purple-deep);
  line-height: 1.2;
  text-shadow: none;
}

.pb-section-header h1 span {
  display: block;
  font-size: 0.45em;
  font-weight: 400;
  color: var(--pb-gray);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.pb-catalogue-count {
  font-size: 0.8rem;
  color: var(--pb-gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 0.4rem;
}

/* ── FEATURED CARD ── */
.pb-catalogue-featured {
  margin-bottom: 2.5rem;
}

.pb-card-featured {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pb-purple-deep) 0%, var(--pb-purple) 100%);
  text-decoration: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.pb-card-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(58, 32, 102, 0.25);
}

.pb-card-featured-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  overflow: hidden;
}

.pb-card-featured-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(62, 205, 198, 0.12) 0%, transparent 50%);
}

/* background image layer (shared) */
.pb-card-visual-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.05;
  filter: blur(2px) saturate(0.6);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pb-card-featured:hover .pb-card-visual-bg,
.pb-card:hover .pb-card-visual-bg {
  opacity: 0.1;
  transform: scale(1.05);
}

.pb-featured-cover-wrapper {
  position: relative;
  width: 260px;
  aspect-ratio: 659 / 900;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  background: rgba(255, 255, 255, 0.06);
}

.pb-card-featured:hover .pb-featured-cover-wrapper {
  transform: scale(1.03) rotate(-1deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.pb-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pb-pdf-label {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.pb-card-featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
}

.pb-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pb-teal);
  margin-bottom: 1.2rem;
}

.pb-card-featured-content h3 {
  font-size: 2.4rem;
  font-weight: 600;
  color: white;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.pb-card-featured-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 380px;
}

.pb-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  padding: 0.85rem 1.8rem;
  border-radius: 100px;
  background: var(--pb-teal);
  transition: all 0.3s ease;
  width: fit-content;
}

.pb-card-featured:hover .pb-card-btn {
  background: var(--pb-teal-dark);
  gap: 14px;
}

.pb-card-btn svg {
  width: 16px;
  height: 16px;
}

/* ── GRID CARDS ── */
.pb-catalogue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.pb-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  background: white;
  border: 1px solid rgba(91, 62, 150, 0.07);
}

.pb-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(91, 62, 150, 0.12);
  color: inherit;
}

.pb-card-visual {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pb-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.pb-card-cover-wrapper {
  position: relative;
  z-index: 1;
  width: 190px;
  aspect-ratio: 659 / 900;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  background: rgba(255, 255, 255, 0.08);
}

.pb-card:hover .pb-card-cover-wrapper {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.pb-card-cover-wrapper .pb-cover-img {
  position: absolute;
  inset: 0;
}

.pb-card-body {
  padding: 2rem 2rem 2.2rem;
}

.pb-card-body .pb-card-tag {
  color: var(--pb-teal-dark);
}

.pb-card-body h3 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--pb-purple-deep);
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.pb-card-body p {
  font-size: 0.9rem;
  color: var(--pb-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pb-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pb-purple);
  transition: gap 0.3s ease, color 0.3s ease;
}

.pb-card:hover .pb-card-link {
  gap: 12px;
  color: var(--pb-teal-dark);
}

.pb-card-link svg {
  width: 14px;
  height: 14px;
}

/* ── PAGE BADGE ── */
.pb-page-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.4;
  padding: 5px 12px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pb-page-badge svg {
  width: 12px;
  height: 12px;
  opacity: 0.8;
}

/* ── ECO MESSAGE ── */
.pb-eco-section {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.pb-eco-banner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2.2rem 2.8rem;
  background: linear-gradient(135deg, rgba(62, 205, 198, 0.06) 0%, rgba(62, 205, 198, 0.02) 100%);
  border: 1px solid rgba(62, 205, 198, 0.15);
  border-radius: 16px;
}

.pb-eco-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(62, 205, 198, 0.1);
  border-radius: 12px;
  color: var(--pb-teal-dark);
  margin-top: 2px;
}

.pb-eco-icon svg {
  width: 22px;
  height: 22px;
}

.pb-eco-content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1f7f79;
  margin-bottom: 0.5rem;
}

.pb-eco-content p {
  font-size: 0.9rem;
  color: var(--pb-gray);
  line-height: 1.7;
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .pb-card-featured {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pb-card-featured-visual {
    min-height: 300px;
  }

  .pb-card-featured-content {
    padding: 2.5rem;
  }

  .pb-catalogue-grid {
    grid-template-columns: 1fr;
  }

  .pb-eco-banner {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .pb-card-featured-content h3 {
    font-size: 1.8rem;
  }

  .pb-card-featured-content {
    padding: 2rem;
  }

  .pb-card-body {
    padding: 1.5rem;
  }

  .pb-catalogues-section {
    padding: 4rem 1.2rem 3rem;
  }

  .pb-eco-section {
    padding: 0 1.2rem 4rem;
  }

  .pb-section-header {
    margin-bottom: 2.5rem;
  }

  .pb-eco-banner {
    padding: 1.5rem;
  }
}

/* ── SCROLL-IN ANIMATION ──
   Only hidden when JS is running (.pb-js), so content never stays invisible. */
.pb-js .pb-animate-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.pb-js .pb-animate-in.pb-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .pb-catalogues-wrap * {
    transition: none !important;
  }

  .pb-js .pb-animate-in {
    opacity: 1;
    transform: none;
  }
}
