/*
 * Recent projects pages (October 2026).
 * Loaded by /projects/ and the Thornberry project page, after main.css
 * and home-polish.css. Also linked from the brick, patio, and residential
 * service pages for the .project-callout only.
 * Palette matches the homepage polish: royal blue #1c2089, gold #E3A03B.
 */

.projects-page { color: #222; }
.projects-page figure { margin: 0; }
.pj-narrow { max-width: 980px; }
.pj-prose { max-width: 760px; }

.pj-hero {
  background: #1c2089;
  color: #fff;
  padding: 3.25rem 0 2.75rem;
  border-bottom: 6px solid #E3A03B;
  text-align: center;
}
.pj-hero h1 {
  color: #fff;
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1.15;
  margin: 0 0 .75rem;
}
.pj-hero .hp-eyebrow { color: #E3A03B; }
.pj-hero .hp-eyebrow a { color: #E3A03B; text-decoration: underline; }
.pj-subhead {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto;
  max-width: 760px;
  color: rgba(255, 255, 255, .95);
}
.pj-breadcrumb { font-size: .9rem; margin-bottom: 1.25rem; color: rgba(255, 255, 255, .8); }
.pj-breadcrumb a { color: #fff; text-decoration: underline; }
@media (max-width: 767px) {
  .pj-hero { padding: 2.1rem 0 1.8rem; }
  .pj-hero h1 { font-size: 1.75rem; }
  .pj-subhead { font-size: 1.08rem; }
}

.pj-section { padding: 2.6rem 0; border-bottom: 1px solid #e3e4ee; }
.pj-section:nth-of-type(even) { background: #f6f7fb; }
.pj-section h2 { color: #1c2089; font-weight: 900; font-size: 1.85rem; margin-bottom: .8rem; }
.pj-section h3 { color: #1c2089; font-weight: 800; font-size: 1.15rem; margin: 0 0 .35rem; }
.pj-section p, .pj-section li { font-size: 1.06rem; line-height: 1.65; }
@media (max-width: 767px) { .pj-section h2 { font-size: 1.45rem; } }

.pj-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0 0 1.5rem;
  border: 1px solid #d9dbe8;
  background: #fff;
}
.pj-facts > div { padding: .85rem 1rem; border-bottom: 1px solid #e3e4ee; }
.pj-facts > div:nth-child(odd) { border-right: 1px solid #e3e4ee; }
.pj-facts dt {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #555;
  font-weight: 700;
}
.pj-facts dd { margin: .15rem 0 0; font-weight: 700; font-size: 1.05rem; }
@media (max-width: 575px) {
  .pj-facts { grid-template-columns: 1fr; }
  .pj-facts > div:nth-child(odd) { border-right: 0; }
}

.pj-note {
  background: #fff8ec;
  border: 1px solid #f0d8a8;
  border-left: 5px solid #E3A03B;
  padding: .9rem 1.1rem;
  margin: 1.25rem 0 0;
}
.pj-note p { margin: 0; }

/* Before/after pairs — full photograph, not cropped */
.pj-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 1.25rem 0 0;
}
.pj-shot {
  position: relative;
  background: #10133f;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .12);
}
.pj-shot a { display: block; }
.pj-shot img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: contain;
  background: #10133f;
}
.pj-shot figcaption,
.pj-slider figcaption,
.pj-single figcaption {
  padding: .7rem .9rem;
  font-size: .95rem;
  line-height: 1.5;
  color: #333;
  background: #fff;
  border-top: 3px solid #1c2089;
}
.pj-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 8px;
}
.pj-tag-after { background: #1c2089; }
.pj-pane { position: relative; }
@media (max-width: 767px) {
  .pj-shot img { height: 240px; }
}

/* Hero comparison slider. Without JS the two frames sit side by side. */
.pj-slider { margin: 1.25rem 0 0; }
.pj-slider-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #10133f;
}
.pj-slider .pj-pane img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center center;
  background: #10133f;
}
.pj-range, .pj-handle { display: none; }
.pj-slider.is-ready .pj-slider-stage {
  display: block;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  touch-action: pan-y;
  cursor: ew-resize;
}
.pj-slider.is-ready .pj-pane {
  position: absolute;
  inset: 0;
}
.pj-slider.is-ready .pj-pane img {
  width: 100%;
  height: 100%;
  max-width: none;
}
.pj-slider.is-ready .pj-pane-before {
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--pos, 62%)) 0 0);
}
.pj-slider.is-ready .pj-range {
  display: block;
  position: absolute;
  z-index: 5;
  left: 0;
  top: 50%;
  width: 100%;
  height: 56px;
  margin: 0;
  transform: translateY(-50%);
  background: transparent;
  appearance: none;
  cursor: ew-resize;
  opacity: .02;
  touch-action: none;
}
.pj-slider.is-ready .pj-handle {
  display: block;
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--pos, 62%);
  width: 4px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px #1c2089;
}
.pj-slider.is-ready .pj-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #E3A03B;
  border: 3px solid #1c2089;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.pj-slider.is-ready .pj-slider-stage:focus-within .pj-handle::after {
  outline: 3px solid #ff631a;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .pj-slider .pj-pane img { height: 220px; }
  .pj-slider.is-ready .pj-pane img { height: 100%; }
}

.pj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 1.25rem;
}
.pj-grid .pj-single { background: #fff; box-shadow: 0 1px 8px rgba(0, 0, 0, .12); }
.pj-single img { display: block; width: 100%; height: auto; }
.pj-single-natural { max-width: 280px; }
.pj-single-natural img { width: 100%; height: auto; }
@media (max-width: 767px) {
  .pj-grid { grid-template-columns: 1fr; }
}

.pj-links { padding-left: 1.2rem; }
.pj-links a { font-weight: 700; }

.pj-back { margin: 1.5rem 0 0 !important; font-size: 1rem !important; }
.pj-back a { color: #fff; text-decoration: underline; }

/* Card on /projects/ */
.pj-card {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 0;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .12);
  border-top: 6px solid #1c2089;
  margin-top: 1.5rem;
}
.pj-card-body { padding: 1.4rem 1.4rem 1.5rem; }
.pj-card-body h2 { margin-top: 0; }
.pj-card .pj-pair { margin: 0; }
.pj-card .pj-shot img { height: 280px; }
.pj-meta { color: #555; font-weight: 700; margin-bottom: .75rem; }
@media (max-width: 767px) {
  .pj-card { grid-template-columns: 1fr; }
  .pj-card .pj-shot img { height: 200px; }
}

/* Short project link on the existing service pages */
.project-callout {
  clear: both;
  margin: 1.5rem 0;
  padding: 1rem 1.15rem .35rem;
  background: #f3f4fa;
  border-left: 6px solid #1c2089;
  border-top: 4px solid #E3A03B;
}
.project-callout-kicker {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: #1c2089;
  font-size: .85rem;
  margin-bottom: .35rem;
}
.project-callout p { margin-bottom: .75rem; }
