/* Catalogue pages: collections, chairs, projects (+ en/ twins).
   Styles only the markup added by the lead-generation overhaul. Loaded last, after leadgen.css. */

/* ---------- hero image wrapper ---------- */
/* On phones the catalogue pages drop the hero photo (see below); a 1px placeholder source keeps it from downloading. */
.page-hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* keyword kicker placed inside the H1 keeps the small-label look */
.page-hero h1 > .kicker {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

html[lang="ar"] .page-hero h1 > .kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- hero call to action ---------- */
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 26px;
}

.page-hero__actions .btn {
  min-height: 50px;
}

.page-hero__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 5px;
  transition: color 0.3s var(--ease);
}

html[lang="ar"] .page-hero__link {
  font-family: var(--sans-ar);
  font-size: 14px;
  letter-spacing: 0;
}

.page-hero__link:hover,
.page-hero__link:focus-visible {
  color: var(--gold-3);
}

/* ---------- compact hero on phones: the first piece must be on the first screen ---------- */
@media (max-width: 720px) {
  .page-hero.page-hero--catalog {
    padding-top: calc(var(--header) + 18px);
    padding-bottom: 18px;
  }

  .page-hero--catalog .crumbs,
  .page-hero--catalog .page-hero__meta,
  .page-hero--catalog .page-hero__media {
    display: none;
  }

  .page-hero.page-hero--catalog h1,
  html[lang="ar"] .page-hero.page-hero--catalog h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .page-hero--catalog h1 > .kicker,
  html[lang="ar"] .page-hero--catalog h1 > .kicker {
    margin-bottom: 10px;
  }

  .page-hero.page-hero--catalog .page-hero__intro,
  html[lang="ar"] .page-hero.page-hero--catalog .page-hero__intro {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
  }

  .page-hero--catalog .page-hero__actions {
    gap: 0 16px;
    margin-top: 12px;
  }

  .page-hero--catalog .page-hero__actions .btn {
    flex: 1 1 100%;
    width: 100%;
    padding-inline: 14px;
  }

  /* keep the long English kicker and labels compact */
  html[lang="en"] .page-hero--catalog h1 > .kicker {
    letter-spacing: 0.14em;
  }

  html[lang="en"] .page-hero--catalog .page-hero__actions .btn {
    letter-spacing: 0.08em;
  }

  /* chairs: the section heading between the hero and the first chair becomes one slim row */
  .section--catalog-compact {
    padding-top: 26px;
  }

  .section--catalog-compact .project-toolbar {
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }

  .split-head.split-head--compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .split-head--compact .split-head__main .kicker,
  .split-head--compact .split-head__aside p {
    display: none;
  }

  .split-head--compact h2 {
    font-size: 26px;
    line-height: 1.15;
  }

  .split-head--compact .split-head__aside {
    flex: 0 0 auto;
    max-width: none;
    padding-bottom: 0;
  }
}

/* ---------- chairs: closing copy under the grid ---------- */
.chairs-about {
  max-width: 760px;
  margin: 40px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

html[lang="ar"] .chairs-about {
  font-size: 14px;
  line-height: 2;
}

/* ---------- projects: links under the gallery heading ---------- */
.split-head__aside .project-links {
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
}

html[lang="ar"] .split-head__aside .project-links {
  font-size: 14px;
}

.project-links a {
  display: inline-block;
  padding: 2px 0;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-links a:hover,
.project-links a:focus-visible {
  color: var(--gold-3);
}

/* The product reference sits before the (multiply-blended) photo in the markup, so wide photos painted over it. */
.piece-tile__index {
  z-index: 2;
  padding: 1px 5px;
  background: rgba(241, 234, 222, 0.92);
}
