/* Shared ending on individual portfolio pages: previous/next, three related
   projects of the same kind, and one audit call to action. Scoped so it does
   not restyle the Elementor article above it. */

.pf-end {
  --pf-blue: #43b8ea;
  --pf-blue-dark: #1e8fc0;
  --pf-ink: #101010;
  --pf-text: #454f57;
  --pf-line: #e4e6f3;
  color: var(--pf-text);
  font-family: Raleway, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
.pf-end * { box-sizing: border-box; }
.pf-wrap { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.pf-end h2 {
  margin: 0 0 22px;
  color: var(--pf-ink);
  font-family: SpaceGrotesk-Bold, SpaceGrotesk, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}
.pf-end a { text-decoration: none; }

.pf-pager {
  max-width: 1140px;
  margin: 8px auto 0;
  padding: 28px 15px 8px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.pf-pager a {
  display: block;
  max-width: 46%;
  color: var(--pf-ink);
  border-radius: 12px;
}
.pf-pager a:hover strong,
.pf-pager a:focus-visible strong { color: var(--pf-blue-dark); }
.pf-pager a:focus-visible { outline: 2px solid var(--pf-blue-dark); outline-offset: 3px; }
.pf-next { margin-left: auto; text-align: right; }
.pf-pager span {
  display: block;
  margin-bottom: 4px;
  color: var(--pf-blue-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pf-pager strong {
  display: block;
  font-size: 18px;
  line-height: 1.3;
}

.pf-more { background: #f7f8fc; padding: 56px 0; }
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 8px;
  align-items: start;
  column-gap: 32px;
  row-gap: 32px;
}
.pf-card {
  display: block;
  min-width: 0;
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
  color: var(--pf-ink);
  text-align: center;
  text-decoration: none;
}
.pf-card:hover,
.pf-card:focus-visible { transform: none; box-shadow: none; color: var(--pf-ink); }
.pf-card:focus-visible { outline: 2px solid var(--pf-blue-dark); outline-offset: 3px; }
.pf-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #f2f2f2;
  transition: opacity 0.15s ease;
}
.pf-card:hover img,
.pf-card:focus-visible img { opacity: 0.88; }
.pf-card span { display: block; padding: 16px 8px 0; font-weight: 700; font-size: 16px; line-height: 1.35; color: var(--pf-ink); }
.pf-card small {
  display: block;
  margin-top: 5px;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa0a6;
}

.pf-cta { background: var(--pf-blue); color: var(--pf-ink); text-align: center; padding: 64px 0; }
.pf-cta h2,
.pf-cta p { color: var(--pf-ink); }
.pf-cta p { max-width: 640px; margin: 0 auto 26px; font-size: 18px; }
.pf-btn {
  display: inline-block;
  background: var(--pf-ink);
  color: #fff !important;
  border-radius: 50px;
  padding: 14px 34px;
  font-size: 18px;
  font-weight: 600;
}
.pf-btn:hover,
.pf-btn:focus-visible { background: #2b2f33; color: #fff !important; }
.pf-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 900px) {
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .pf-wrap, .pf-pager { padding-left: 24px; padding-right: 24px; }
  .pf-pager a { max-width: 48%; }
  .pf-more { padding: 46px 0; }
  .pf-cta { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-card img { transition: none; }
}

/* The client's own review, shown on a project page */
.pf-review { padding: 48px 0 8px; }
.pf-review figure { max-width: 780px; margin: 0 auto; padding: 28px 30px; background: #f7f8fc; border: 1px solid var(--pf-line); border-radius: 18px; }
.pf-review blockquote { margin: 0; padding: 0; border: 0; }
.pf-review blockquote p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--pf-ink); }
.pf-review figcaption { margin-top: 14px; font-size: 15px; color: var(--pf-text); }
.pf-review-more { margin: 14px 0 0; text-align: center; font-size: 15px; }
.pf-review-more a { color: #0f6f9b; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
