
/* ---------- project pages (#79 Private Palace Yaafour, the template for #80 to #103) ----------
   Hani's layout picks (5 Nov, _review/yaafour-layouts.html). Large images, few words.
   Solid bands only, square corners, no shadows, palette tokens only, and no decorative lines or ticks
   in this page's own sections (.pj): labels are plain small text. Shared sections keep their own styles. */

/* labels: plain small text (the shared label line and tick are switched off inside .pj sections) */
.site.page-project .pj .label { padding-bottom: 0; min-width: 0; }
.site.page-project .pj .label::before, .site.page-project .pj .label::after { content: none; }

/* story images: even grids per row, fixed shapes; a click opens the whole picture in the lightbox */
.pj-rows { margin-top: 56px; display: grid; gap: 40px; }
.pj-grid { display: grid; gap: 40px 24px; align-items: start; }
.pj-grid--1 { grid-template-columns: minmax(0, 1fr); }
.pj-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pj-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pj-fig { min-width: 0; }
.pj-open { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: var(--travertine-shade); cursor: zoom-in; overflow: hidden; }
.dark .pj-open { background: var(--basalt-low); }
.pj-open img { display: block; width: 100%; height: auto; object-fit: cover; transition: opacity .25s ease-out; }
.pj-fig--w .pj-open img { aspect-ratio: 3 / 2; }
.pj-fig--t .pj-open img { aspect-ratio: 4 / 5; }
.pj-fig--x .pj-open img { aspect-ratio: 16 / 9; }
.pj-open:hover img { opacity: .9; }
.pj-open:focus-visible { outline: 2px solid var(--bronze-deep); outline-offset: 3px; }
.dark .pj-open:focus-visible { outline-color: var(--bronze-light); }
.pj-cap { margin-top: 14px; max-width: 60ch; color: var(--espresso); font: 400 .9375rem/1.55 var(--latin); }
[lang="ar"] .pj-cap { font: 400 16.5px/1.75 var(--arabic); }
.pj-cap__t { display: block; margin-bottom: 4px; color: var(--basalt); font: 500 .75rem/1.4 var(--latin); letter-spacing: .14em; text-transform: uppercase; }
[lang="ar"] .pj-cap__t { font: 500 15px/1.5 var(--arabic); letter-spacing: 0; text-transform: none; }
.site[lang="zh-Hans"] .pj-cap__t { letter-spacing: .06em; }
.dark .pj-cap { color: var(--travertine-shade); }
.dark .pj-cap__t { color: var(--bronze-light); }

/* 02 at a glance (A): the facts as a plain list on the left, the aerial view on the right */
.pj-glance { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.pj-facts { margin: 0; display: grid; gap: 20px; }
.pj-facts > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; }
.pj-facts dt { padding-top: 3px; color: var(--bronze-deep); font: 500 .75rem/1.45 var(--latin); letter-spacing: .14em; text-transform: uppercase; }
[lang="ar"] .pj-facts dt { padding-top: 0; font: 500 15px/1.6 var(--arabic); letter-spacing: 0; text-transform: none; }
.site[lang="zh-Hans"] .pj-facts dt { letter-spacing: .06em; }
.pj-facts dd { margin: 0; color: var(--basalt); line-height: 1.55; }
.pj-facts a { color: var(--bronze-deep); text-underline-offset: 3px; }
.pj-facts a:hover { color: var(--basalt); }

/* 10 materials and palette (A, Basalt band): the board on the left; the materials with colour chips and the detail on the right */
.pj-mat { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: 48px; align-items: start; }
.pj-mat__side { display: grid; gap: 40px; min-width: 0; }
.pj-mats { display: grid; gap: 18px; }
.pj-mats li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; align-items: start; min-width: 0; }
.pj-mats__c { display: block; width: 36px; height: 36px; }
.pj-mats .h3 { font-size: 1.0625rem; line-height: 1.35; color: var(--travertine); }
.pj-mats .body { margin-top: 2px; font-size: .875rem; line-height: 1.55; color: var(--travertine-shade); }
[lang="ar"] .pj-mats .body { font-size: 15.5px; line-height: 1.7; }

/* 11 gallery (B): no filter buttons, so the image columns start under the intro */
.pj .gal .gA { margin-top: 48px; }

/* 12 services (A): image cards; then the rooms in this project */
.pj-svc { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pj-svc > li { display: flex; min-width: 0; }
.pj-card { flex: 1; display: flex; flex-direction: column; background: var(--alabaster); color: var(--basalt); text-decoration: none; transition: background-color .2s; }
.pj-card:hover { background: var(--travertine-shade); }
.pj-card:focus-visible { outline: 2px solid var(--bronze-deep); outline-offset: 3px; }
.pj-card__img { display: block; background: var(--travertine-shade); overflow: hidden; }
.pj-card__img img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .25s ease-out; }
.pj-card:hover .pj-card__img img { opacity: .9; }
.pj-card__b { flex: 1; display: flex; flex-direction: column; padding: 24px 24px 22px; }
.pj-card .h3 { font-size: 1.25rem; }
.pj-card .body { margin-top: 8px; font-size: .9375rem; line-height: 1.6; max-width: 36ch; }
[lang="ar"] .pj-card .body { font-size: 16px; line-height: 1.75; }
.pj-card .textlink { margin-top: auto; padding-top: 16px; }
.pj-card .arrow path { fill: none; stroke: currentColor; stroke-width: 1.5; }
[dir="rtl"] .pj-card .arrow { transform: scaleX(-1); }
.pj-rooms { margin-top: 48px; }
.pj-rooms .chips { margin-top: 16px; }

/* 15 FAQ (B): the questions as a plain numbered list on the left, the chosen answer on the right.
   Below 900 px the shared open-and-close list takes over unchanged. */
@media (min-width: 900px) {
  .pj-faq .f4 { column-gap: 56px; }
  .pj-faq .f4-q, .pj-faq .f4-q:hover, .pj-faq .f4-item.is-on .f4-q { background: transparent; margin-bottom: 0; }
  .pj-faq .f4-q button { min-height: 0; padding: 12px 0; color: var(--basalt); transition: color .15s ease-out; }
  .pj-faq .f4-q button:hover { color: var(--bronze-deep); }
  .pj-faq .f4-q button:focus-visible { outline: 2px solid var(--bronze-deep); outline-offset: 2px; }
  .pj-faq .f4-n { color: var(--bronze-deep); font-size: 12px; }
  .pj-faq .f4-item.is-on .f4-q button { color: var(--bronze-deep); }
  .pj-faq .f4-item.is-on .f4-n { color: var(--bronze-deep); }
  .pj-faq .f4-item.is-on .f4-qt { font-weight: 500; }
  .pj-faq .f4-a { border-top: 0; padding: 44px 48px 48px; }
}

@media (max-width: 1023px) {
  .pj-glance { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pj-mat { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pj-mat__side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .pj-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .pj-rows { margin-top: 36px; gap: 32px; }
  .pj-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pj-grid--2.pj-grid--t { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .pj-grid--2.pj-grid--t .pj-cap { font-size: .875rem; }
  [lang="ar"] .pj-grid--2.pj-grid--t .pj-cap { font-size: 15px; }
  .pj-glance, .pj-mat, .pj-svc, .pj .gal .gA { margin-top: 36px; }
  .pj-mat__side { grid-template-columns: minmax(0, 1fr); }
  .pj-svc { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pj-card__b { padding: 20px 20px 18px; }
}
@media (max-width: 479px) {
  .pj-facts { gap: 16px; }
  .pj-facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .pj-open img, .pj-card__img img, .pj-card { transition: none; } }
