/* =========================================================================
   Services pages — photo-first: slim photo banner, square photo tiles with
   a white label box, an even portfolio grid (no uneven gaps) and a short
   closing block.
   ========================================================================= */

/* ---------- Slim photo banner ---------- */
.rjs-banner {
  position: relative;
  min-height: clamp(220px, 32vh, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--rji-charcoal);
  color: #fff;
}
.rjs-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rjs-banner::after { content: ""; position: absolute; inset: 0; background: rgba(10, 12, 16, 0.55); }
.rjs-banner__content { position: relative; z-index: 1; width: 100%; padding-block: 2.5rem; }
.rjs-banner__crumbs { font-size: 0.8rem; letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.rjs-banner__crumbs a { color: rgba(255, 255, 255, 0.75); }
.rjs-banner__crumbs a:hover { color: #fff; }
.rjs-banner__crumbs span { margin: 0 0.4rem; color: rgba(255, 255, 255, 0.45); }
.rjs-banner__eyebrow { display: block; font-size: 1rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 0.35rem; }
.rjs-banner h1 {
  color: #fff;
  margin: 0;
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
.rjs-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.rjs-section--tight { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.rjs-narrow { max-width: 900px; }
.rjs-title {
  text-align: center;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 700;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

/* ---------- Filter pills ---------- */
.rjs-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.rjs-filter {
  border: 0;
  background: none;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rji-slate);
  transition: background-color var(--rji-transition), color var(--rji-transition);
}
.rjs-filter:hover { color: var(--rji-charcoal); }
.rjs-filter.is-active { background: var(--rji-ember); color: #fff; }

/* ---------- Photo tiles (label box over the bottom) ---------- */
.rjs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.2vw, 2rem); }
.rjs-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rjs-tile { position: relative; display: block; padding-bottom: 1.6rem; color: var(--rji-charcoal); }
.rjs-tile[hidden] { display: none; }
.rjs-tile__media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--rji-stone-dark); }
.rjs-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.rjs-tile:hover .rjs-tile__media img { transform: scale(1.06); }
.rjs-tile__placeholder { display: grid; place-items: center; height: 100%; font-size: 3rem; color: rgba(20, 24, 29, 0.25); }
.rjs-tile__label {
  position: absolute;
  left: 7.5%;
  right: 7.5%;
  bottom: 0;
  padding: 0.9rem 1.1rem;
  background: var(--rji-white);
  box-shadow: 0 6px 18px rgba(20, 24, 29, 0.08);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--rji-transition);
}
.rjs-tile:hover .rjs-tile__label { color: var(--rji-ember); }

/* ---------- Service intro ---------- */
.rjs-intro { padding-block: clamp(2.5rem, 5vw, 3.5rem) 0.5rem; }
.rjs-intro__text { max-width: 980px; margin: 0 auto; text-align: center; }
.rjs-intro__text p { color: var(--rji-charcoal); font-size: 1.02rem; line-height: 1.75; }
.rjs-intro__lead { font-size: 1.12rem !important; font-weight: 700; }
.rjs-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; max-width: 980px; margin: 1.25rem auto 0; }
.rjs-chips__label { width: 100%; text-align: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rji-slate); margin-bottom: 0.25rem; }
.rjs-chip { padding: 0.4rem 0.9rem; border: 1px solid var(--rji-stone-dark); border-radius: 999px; font-size: 0.88rem; background: var(--rji-white); }

/* ---------- Portfolio: an even grid, every tile the same shape ---------- */
.rjs-portfolio { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.75rem, 1.6vw, 1.25rem); }
.rjs-portfolio__item {
  display: block;
  padding: 0;
  border: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--rji-stone-dark);
  cursor: zoom-in;
}
.rjs-portfolio__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 300ms ease; }
.rjs-portfolio__item:hover img { transform: scale(1.06); filter: brightness(1.05); }

/* ---------- Lightbox ---------- */
.rjs-lightbox .modal-content { background: transparent; border: 0; }
.rjs-lightbox .btn-close { position: absolute; z-index: 3; top: -2.25rem; right: 0; }
.rjs-lightbox .carousel-item img { display: block; width: 100%; max-height: 80vh; object-fit: contain; }
.rjs-lightbox__caption { color: #fff; text-align: center; margin: 0.75rem 0 0; font-size: 0.95rem; }
.rjs-lightbox .carousel-control-prev,
.rjs-lightbox .carousel-control-next { width: 3.25rem; opacity: 1; }
.rjs-lightbox .carousel-control-prev i,
.rjs-lightbox .carousel-control-next i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.2rem;
}

/* ---------- Helpful articles ---------- */
.rjs-articles { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rji-stone-dark); }
.rjs-articles a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.95rem 0.25rem; border-bottom: 1px solid var(--rji-stone-dark); color: var(--rji-charcoal); font-weight: 700; }
.rjs-articles a:hover { color: var(--rji-ember); }

/* ---------- Closing block ---------- */
.rjs-closing { padding-block: clamp(2.5rem, 5vw, 4rem); text-align: center; border-top: 1px solid var(--rji-stone-dark); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.rjs-closing h2 { color: var(--rji-ember); font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); font-weight: 700; margin-bottom: 0.75rem; }
.rjs-closing p { max-width: 760px; margin: 0 auto 1.5rem; color: var(--rji-charcoal); }
.rjs-closing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.rjs-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--rji-ember);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background-color var(--rji-transition);
}
.rjs-btn:hover { background: var(--rji-ember-dark); color: #fff; }
.rjs-btn--outline { background: transparent; color: var(--rji-charcoal); border: 1px solid var(--rji-charcoal); }
.rjs-btn--outline:hover { background: var(--rji-charcoal); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .rjs-grid,
  .rjs-portfolio { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767.98px) {
  .rjs-grid,
  .rjs-grid--3,
  .rjs-portfolio { grid-template-columns: repeat(2, 1fr); }
  .rjs-tile__label { left: 5%; right: 5%; padding: 0.6rem 0.7rem; font-size: 0.74rem; letter-spacing: 0.05em; }
  .rjs-tile { padding-bottom: 1.4rem; }
  .rjs-filters { gap: 0.4rem 0.6rem; }
  .rjs-filter { font-size: 0.74rem; padding: 0.4rem 0.8rem; }
}
