/* ==========================================================================
   THE DESIGNERS HUB — Listing pages (Services + Private classes)
   ==========================================================================
   A flowing, responsive card grid that replaces the old pinned 15-card
   programs layout. It adapts to any number of cards, so the catalogue can be
   split across pages (Services / Private classes) without re-pinning. Reuses
   the brand system (Inter, gold accent, dark plates).
   ========================================================================== */

.page-list main { position: relative; background: var(--bg); }

/* ---------- hero ---------- */
.svc-hero {
  background: var(--color-surface-dark);
  color: var(--white);
  text-align: center;
  padding: 96px 24px 84px;
}
.svc-hero__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.08;
  margin: 0;
  color: var(--white);
}
.svc-hero__line {
  color: #E2E2E2;
  font-size: clamp(15px, 1.9vw, 18px);
  line-height: 1.6;
  margin: 18px auto 0;
  max-width: 760px;
}

/* ---------- grid ---------- */
.svc-wrap { max-width: 1200px; margin-inline: auto; padding: 64px 24px 8px; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.svc-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #E2E2E2;
  background: #fff;
  overflow: hidden;
  border-radius: 2px;
}
.svc-card__thumb {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center center;   /* faces sit high in the frame — don't crop them off */
  background: #efefef;
  display: block;
}
.svc-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.svc-card__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  font-size: 19px;
  line-height: 1.25;
  color: var(--color-text);
  margin: 0 0 10px;
}
.svc-card__desc { font-size: 15px; line-height: 1.6; color: var(--grey-700); margin: 0 0 18px; }
.svc-card__meta { font-size: 13px; line-height: 1.5; color: var(--grey-700); margin: 0 0 4px; }
.svc-card__meta span { color: var(--color-text); font-weight: var(--fw-semi); }

.svc-card__actions {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.svc-card__more {
  color: var(--gold-deep);
  font-weight: var(--fw-semi);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.svc-card__more:hover, .svc-card__more:focus-visible { text-decoration: underline; }
.svc-card__book { margin-left: auto; display: inline-flex; }
.svc-card__book.btn { min-height: 44px; padding: 0 26px; }

/* ---------- closing CTA ---------- */
.svc-cta { max-width: 1200px; margin: 72px auto 0; padding: 0 24px 96px; }
.svc-cta__inner { background: var(--color-surface-dark); text-align: center; padding: 52px 40px; border-radius: 2px; }
.svc-cta__title {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.2;
  margin: 0 0 14px;
}
.svc-cta__text { color: #D9D9D9; font-size: 16px; line-height: 1.6; margin: 0 auto 26px; max-width: 620px; }
.svc-cta .btn { display: inline-flex; }

/* ---------- tablet / mobile ---------- */
@media (max-width: 767px) {
  .svc-hero { padding: 72px 20px 56px; }
  .svc-wrap { padding: 44px 16px 8px; }
  .svc-grid { grid-template-columns: 1fr; gap: 20px; }
  .svc-card__thumb {
    height: 300px;
    object-fit: contain;
    object-position: center;
    background: #fff;
  }
  .svc-card__body { padding: 22px 20px 24px; }
  .svc-cta { padding: 0 16px 72px; }
  .svc-cta__inner { padding: 40px 22px; }
}

/* ---------- RTL ---------- */
html[dir="rtl"] .svc-card__book { margin-left: 0; margin-right: auto; }
