/* =============================================================
 The FloorHaus™. Projects page (Downloads/handoff 25, "Projects Original", 2026-10-28)

 Original colours. Loaded after styles.css, home.css, enquiry.css and
 contact.css (the rotating banner): the header, Our Products dropdown,
 menu, footer, 90% zoom, the enquiry form and the before & after slider
 (.hp-ba) are the home page's (js/home.js). This file is the page's own
 sections, `pj-*`; behaviour is js/projects.js. Reveals (.is-seen on each
 [data-pj-seen]) only hide anything under .hp-js.
 ============================================================= */

body.pj .hp-hdr { position: sticky; }
.hp-nav__link[aria-current="page"] { display: inline-flex; align-items: center; gap: 7px; }
.hp-nav__link[aria-current="page"]::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6B5B3E; }

/* ----- Shared ----- */
.pj-main { --pj-ease: cubic-bezier(.22,.61,.36,1); display: block; }
.pj-main h1, .pj-main h2, .pj-main h3 { font-family: var(--hp-display); margin: 0; }
.pj-wrap { max-width: 1360px; margin: 0 auto; padding: 0 clamp(20px,4vw,56px); }
.pj-rule { height: 1px; background: #B8B3A6; }
.pj-eyebrow { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #666; }
.pj-eyebrow > span { display: block; width: 32px; height: 2px; background: #6B5B3E; }
.pj-eyebrow--light { color: #FFFFFF; text-shadow: 0 1px 8px rgba(26,26,26,.35); }
.pj-eyebrow--light > span { background: #FFFFFF; }
.pj-h2 { font-weight: 700; font-size: clamp(36px,4.4vw,68px); line-height: .95; letter-spacing: -.035em; text-transform: uppercase; }
.pj-h2--faq { font-size: clamp(36px,4.2vw,64px); }
.pj-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.pj-btns--center { justify-content: center; }
.pj-btn, .pj-btn:hover {
 height: 54px; padding: 0 26px; box-sizing: border-box; border-radius: 999px; display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; cursor: pointer;
 font-family: var(--f-sans); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
 transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s var(--pj-ease);
}
.pj-btn--cream, .pj-btn--cream:hover { background: #F5F2EB; color: #1A1A1A; }
.pj-btn--cream:hover { background: #FFFFFF; transform: translateY(-2px); }
.pj-btn--dark, .pj-btn--dark:hover { background: #1A1A1A; color: #FFFFFF; border: 1.5px solid #1A1A1A; }
.pj-btn--dark:hover { background: #6B5B3E; border-color: #6B5B3E; transform: translateY(-2px); }
.pj-btn--line, .pj-btn--line:hover { border: 1.5px solid #1A1A1A; background: transparent; color: #1A1A1A; }
.pj-btn--line:hover { background: #1A1A1A; color: #FFFFFF; }
.pj-btn--phone, .pj-btn--phone:hover { height: 52px; letter-spacing: .04em; font-size: 14px; }

/* Reveals */
.pj-fade { transition: opacity .8s ease var(--d, 0s); }
.pj-rise { transition: opacity 1s ease var(--d, 0s), transform 1s var(--pj-ease) var(--d, 0s); }
.hp-js [data-pj-seen]:not(.is-seen) .pj-fade { opacity: 0; }
.hp-js [data-pj-seen]:not(.is-seen) .pj-rise { opacity: 0; transform: translateY(18px); }

/* ----- 1. Hero ----- */
.pj-hero { position: relative; min-height: clamp(560px, calc(84vh / var(--hp-z)), 880px); display: flex; align-items: flex-end; overflow: hidden; background: #1A1A1A; color: #FFFFFF; }
.pj-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 64%; transition: transform 2.4s var(--pj-ease); }
.hp-js .pj-hero:not(.is-seen) .pj-hero__img { transform: scale(1.12); }
.pj-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,26,26,.34) 0%, rgba(26,26,26,0) 28%, rgba(26,26,26,.12) 54%, rgba(26,26,26,.74) 100%); }
.pj-hero__inner { position: relative; width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 clamp(20px,4vw,56px) clamp(40px,5vw,72px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 48px; }
.pj-hero__copy { display: flex; flex-direction: column; gap: 20px; max-width: 880px; }
.pj-h1 { font-weight: 700; font-size: clamp(48px,7.4vw,116px); line-height: .92; letter-spacing: -.035em; text-transform: uppercase; text-shadow: 0 2px 18px rgba(26,26,26,.25); }
.pj-mask { display: block; overflow: hidden; padding-bottom: .04em; }
.pj-mask--last { padding-bottom: .06em; }
.pj-mask > span { display: block; transition: transform 1.2s var(--pj-ease) var(--d, 0s); }
.hp-js .pj-hero:not(.is-seen) .pj-mask > span { transform: translateY(110%); }
.pj-hero__sub { margin: 0; max-width: 560px; font-size: clamp(16px,1.3vw,19px); line-height: 1.6; text-shadow: 0 1px 10px rgba(26,26,26,.4); }

/* ----- 2. Project block ----- */
.pj-proj { background: #F5F2EB; color: #1A1A1A; padding: clamp(72px,8vw,120px) 0; scroll-margin-top: 90px; }
.pj-proj__head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.pj-proj__head p { margin: 0; font-size: 17px; line-height: 1.65; color: #666; text-wrap: pretty; }
.pj-proj__grid { display: grid; grid-template-columns: minmax(0,1fr); gap: clamp(32px,4vw,72px); align-items: start; margin-top: clamp(32px,3.6vw,48px); }
@media (min-width: 1000px) {
 .pj-proj__grid { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); }
 /* Every second project puts its gallery on the right. */
 .pj-proj--flip .pj-proj__grid { grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); }
 .pj-proj--flip .pj-gal { order: 2; }
}
.pj-gal { display: flex; flex-direction: column; gap: 14px; transition: opacity 1.1s ease .15s, transform 1.2s var(--pj-ease) .15s; }
.pj-info { display: flex; flex-direction: column; gap: clamp(28px,3vw,40px); transition: opacity 1.1s ease .3s, transform 1.2s var(--pj-ease) .3s; }
.hp-js .pj-proj:not(.is-seen) .pj-gal { opacity: 0; transform: translateX(-48px); }
.hp-js .pj-proj:not(.is-seen) .pj-info { opacity: 0; transform: translateX(48px); }
.pj-gal__main { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: #ECE7DA; }
/* Slides: the incoming one wipes in from the side it travels towards (.is-back reverses it) and
   settles from 1.06; the previous one (.is-prev) stays underneath until the wipe is done. */
.pj-gal__img {
 position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: 0; opacity: 0;
 clip-path: inset(0 0 0 100%); transform: scale(1.06);
 transition: clip-path 0s linear 1.1s, opacity 0s linear 1.1s, transform 1.6s var(--pj-ease);
}
.pj-gal.is-back .pj-gal__img:not(.is-on):not(.is-prev) { clip-path: inset(0 100% 0 0); }
.pj-gal__img.is-prev { z-index: 1; opacity: 1; clip-path: inset(0 0 0 0); }
.pj-gal__img.is-on { z-index: 2; opacity: 1; clip-path: inset(0 0 0 0); transform: none; transition: clip-path 1.1s cubic-bezier(.76,0,.24,1), transform 1.6s var(--pj-ease); }
.pj-gal__img.is-prep { transition: none !important; }
.pj-gal__shade { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 3; background: linear-gradient(0deg, rgba(26,26,26,.42), rgba(26,26,26,0)); pointer-events: none; }
.pj-gal__count {
 position: absolute; left: 18px; bottom: 18px; z-index: 4; height: 36px; padding: 0 14px; display: flex; align-items: center; border-radius: 999px;
 background: rgba(245,242,235,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12px; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums;
}
.pj-gal__arrows { position: absolute; right: 18px; bottom: 18px; z-index: 4; display: flex; gap: 8px; }
.pj-gal__arrow {
 width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(245,242,235,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #1A1A1A;
 display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .3s ease, color .3s ease;
}
.pj-gal__arrow:hover { background: #1A1A1A; color: #FFFFFF; }
.pj-gal__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.pj-gal__thumb { padding: 0; border: 0; background: #ECE7DA; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; cursor: pointer; opacity: .55; transition: opacity .3s ease, box-shadow .3s ease; }
.pj-gal__thumb:hover { opacity: 1; }
.pj-gal__thumb.is-on { opacity: 1; box-shadow: 0 0 0 2px #F5F2EB, 0 0 0 4px #1A1A1A; }
.pj-gal__thumb img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.pj-specs { margin: 0; display: flex; flex-direction: column; border-top: 1.5px dashed #B8B3A6; }
.pj-specs > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1.5px dashed #B8B3A6; }
.pj-specs dt { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #666; }
.pj-specs dd { margin: 0; display: flex; align-items: center; gap: 12px; font-family: var(--hp-display); font-weight: 600; font-size: clamp(20px,1.8vw,26px); line-height: 1.1; letter-spacing: -.02em; }
.pj-specs dd img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1px rgba(26,26,26,.12); }
.pj-steps { display: flex; flex-direction: column; gap: 16px; }
.pj-steps h3 { font-weight: 600; font-size: clamp(20px,1.7vw,24px); letter-spacing: -.02em; }
.pj-steps ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pj-steps li { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 1.45; transition: opacity .6s ease calc(700ms + var(--i) * 110ms), transform .7s var(--pj-ease) calc(700ms + var(--i) * 110ms); }
.pj-steps li > span { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #1A1A1A; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hp-js .pj-proj:not(.is-seen) .pj-steps li { opacity: 0; transform: translateY(10px); }

/* The before & after slider is the home page's (.hp-ba in css/home.css); on this page it sits on cream. */
body.pj .hp-ba { background: #F5F2EB; }

/* ----- 4. Before you start ----- */
.pj-faq { background: #ECE7DA; color: #1A1A1A; padding: clamp(72px,8vw,120px) 0; }
.pj-faq__grid { display: grid; grid-template-columns: minmax(0,1fr); gap: clamp(36px,5vw,88px); align-items: start; }
@media (min-width: 1000px) { .pj-faq__grid { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); } .pj-faq__side { position: sticky; top: 110px; } }
.pj-faq__side { display: flex; flex-direction: column; gap: 20px; }
.pj-faq__side > p { margin: 0; max-width: 420px; font-size: 17px; line-height: 1.6; color: #666; }
.pj-faq__card { margin-top: 8px; padding: clamp(22px,2.4vw,30px); border-radius: 24px; background: #F5F2EB; display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.pj-faq__card h3 { font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.pj-faq__card p { margin: 0; font-size: 15px; line-height: 1.6; color: #666; }
.pj-faq__card .pj-btn { height: 48px; align-self: flex-start; }
.pj-faq__list { display: flex; flex-direction: column; border-top: 1.5px dashed #B8B3A6; }
.pj-faq__item { border-bottom: 1.5px dashed #B8B3A6; }
.pj-faq__item h3 { font: inherit; }
.pj-faq__item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; border: 0; background: transparent; cursor: pointer; text-align: left; color: #1A1A1A; }
.pj-faq__item button > span:first-child { font-family: var(--hp-display); font-weight: 600; font-size: clamp(18px,1.6vw,22px); line-height: 1.3; letter-spacing: -.01em; }
.pj-faq__pm { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #1A1A1A; display: flex; align-items: center; justify-content: center; transition: transform .4s var(--pj-ease), background .3s ease, color .3s ease; }
.pj-faq__pm path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.pj-faq__item.is-open .pj-faq__pm { transform: rotate(45deg); background: #1A1A1A; color: #FFFFFF; }
.pj-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--pj-ease); }
.pj-faq__a > div { overflow: hidden; }
.pj-faq__a p { margin: 0; padding: 0 64px 26px 0; font-size: 16px; line-height: 1.65; color: #666; }
.pj-faq__item.is-open .pj-faq__a { grid-template-rows: 1fr; }
.pj-faq__item:not(.is-open) .pj-faq__a { visibility: hidden; transition: grid-template-rows .45s var(--pj-ease), visibility 0s .45s; }

/* ----- 5. CTA ----- */
.pj-cta { background: #ECE7DA; color: #1A1A1A; padding: clamp(64px,7vw,104px) clamp(20px,4vw,56px); text-align: center; }
.pj-cta__inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pj-cta h2 { font-weight: 600; font-size: clamp(32px,3.6vw,52px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.pj-cta p { margin: 0; font-size: 17px; line-height: 1.6; color: #666; }
.pj-cta .pj-btns { margin-top: 8px; }

/* ============== ONE SCREEN EACH (desktop) ============== */
/* As on the other v2 pages (home.css's --hp-room / --hp-fitpad / --hp-fitgap): from 1024px the
   hero fills the window under the banner and header, and the project block, the questions and
   the CTA each fit one screen: padding follows the window height and the gallery's width comes
   from the height left (4:3 photo + thumbnails), so the photo never pushes past the fold. */
@media (min-width: 1024px) {
 /* At the top of the page: the window less the 40px banner and the header (+ its 2px line). */
 .pj-hero { min-height: 0; height: calc(var(--hp-screen) - 42px - var(--hp-hdr-h)); }
 .pj-proj { padding: var(--hp-fitpad) 0; }
 .pj-proj__head { gap: 10px; }
 .pj-proj .pj-h2 { font-size: clamp(32px, min(4.4vw, 7vh), 68px); }
 .pj-proj__head p { font-size: 16px; }
 .pj-proj__grid { margin-top: var(--hp-fitgap); gap: clamp(28px,3.4vw,72px); }
 /* The gallery column: the photo is 4:3 and the thumbnail row ~1/5 of its width at 3/4 height,
    so its height is ~0.9 × its width; cap the width so the photo and thumbs fit the room left. */
 .pj-gal { width: min(100%, calc((var(--hp-room) - 2 * var(--hp-fitpad) - var(--hp-fitgap) - 150px) / .91)); }
 .pj-info { gap: clamp(16px, 2.4vh, 40px); }
 .pj-specs > div { padding: clamp(10px, 1.7vh, 18px) 0; }
 .pj-steps { gap: 12px; }
 .pj-steps ol { gap: clamp(6px, 1.1vh, 12px); }
 .pj-steps li { font-size: 15px; }
 .pj-faq { padding: var(--hp-fitpad) 0; }
 .pj-faq__item button { padding: clamp(14px, 2.4vh, 24px) 0; }
 .pj-cta { padding: var(--hp-fitpad) clamp(20px,4vw,56px); }
}

/* Short laptops (≤ 820px tall): the details column is the taller one, so the columns go equal
   (the steps stay on one line) and the specs, steps and buttons tighten. */
@media (min-width: 1024px) and (max-height: 820px) {
 .pj-proj__grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
 .pj-proj--flip .pj-proj__grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
 .pj-info { gap: 11px; }
 .pj-specs > div { padding: 8px 0; }
 .pj-specs dd { font-size: clamp(18px, 1.6vw, 22px); }
 .pj-specs dd img { width: 28px; height: 28px; border-radius: 7px; }
 .pj-steps { gap: 8px; }
 .pj-steps h3 { font-size: 18px; }
 .pj-steps ol { gap: 6px; }
 .pj-steps li { font-size: 14.5px; }
 .pj-steps li > span { width: 24px; height: 24px; font-size: 11px; }
 .pj-info .pj-btn { height: 46px; }
}

/* ============== PHONES ============== */
@media (max-width: 767px) {
 .pj-hero { min-height: 0; height: calc(100svh - var(--hp-hdr-h) - 40px - 2px); }
 .pj-hero__inner { padding-bottom: 28px; gap: 20px; }
 .pj-hero__copy { gap: 14px; }
 .pj-h1 { font-size: clamp(42px, 12.4vw, 56px); }
 .pj-hero__sub { font-size: 15px; }
 .pj-proj { padding: 32px 0; }
 .pj-proj__head { gap: 10px; }
 .pj-proj .pj-h2, .pj-h2--faq { font-size: clamp(30px, 8.6vw, 36px); }
 .pj-proj__head p { font-size: 15px; line-height: 1.55; }
 .pj-proj__grid { margin-top: 20px; gap: 24px; }
 .pj-gal__main { border-radius: 18px; }
 .pj-gal__count { left: 12px; bottom: 12px; height: 32px; }
 .pj-gal__arrows { right: 12px; bottom: 12px; }
 .pj-gal__arrow { width: 40px; height: 40px; }
 .pj-gal__thumbs { gap: 6px; }
 .pj-gal__thumb { border-radius: 8px; }
 .pj-specs > div { padding: 12px 0; }
 .pj-specs dd { font-size: 19px; }
 .pj-steps li { font-size: 14.5px; }
 .pj-btns .pj-btn { flex: 1 1 auto; justify-content: center; padding: 0 16px; font-size: 11.5px; letter-spacing: .1em; }
 .pj-faq { padding: 32px 0; }
 .pj-faq__side { gap: 12px; }
 .pj-faq__side > p { font-size: 15px; }
 .pj-faq__card { padding: 18px; gap: 10px; border-radius: 18px; }
 .pj-faq__item button { padding: 16px 0; }
 .pj-faq__a p { padding-right: 0; font-size: 15px; }
 .pj-cta { padding: 40px 20px; }
}

@media (prefers-reduced-motion: reduce) {
 .pj-main *, .pj-main *::before { transition-duration: .01ms !important; transition-delay: 0s !important; }
}
