/* ---------------------------------------------------------------------
 * [rc_services_index] — the 11-card grid of real rc_service entries on
 * the /services/ page. Mirrors gallery-index.css's structure; adds a
 * price line since the service CPT (unlike the gallery entry points)
 * carries real price data via rc_sm_format_price().
 * ------------------------------------------------------------------- */

.rc-services-index {
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 20px 40px;
  font-family: "Work Sans", sans-serif;
}
.rc-services-index .rc-si-intro {
  max-width: 680px;
  margin: 0 0 36px;
  color: #4a4237;
  font-size: 1.05rem;
  line-height: 1.7;
}
.rc-services-index .rc-si-empty {
  color: #4a4237;
  opacity: .7;
}
.rc-services-index .rc-si-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.rc-services-index .rc-si-card {
  position: relative;
  display: block;
  background: #1b1815;
  border: 1px solid #2f2a23;
  text-decoration: none;
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}
.rc-services-index .rc-si-card:hover {
  border-color: #a8813f;
  transform: translateY(-3px);
}
.rc-services-index .rc-si-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: #c79a52;
  transition: width .35s ease;
}
.rc-services-index .rc-si-card:hover::before {
  width: 100%;
}
.rc-services-index .rc-si-eyebrow {
  display: block;
  font-family: "Work Sans", sans-serif;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a8813f;
  margin-bottom: 14px;
}
.rc-services-index .rc-si-title {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  line-height: 1.3;
  color: #e9dfc7;
  margin: 0 0 10px;
  font-weight: 600;
}
.rc-services-index .rc-si-price {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: .8rem;
  color: #cbbfa0;
  opacity: .75;
  margin: 0 0 18px;
}
.rc-services-index .rc-si-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: #e9dfc7;
  opacity: .75;
}
.rc-services-index .rc-si-cta svg {
  width: 14px;
  height: 14px;
  transition: transform .3s ease;
  vertical-align: middle;
}
.rc-services-index .rc-si-card:hover .rc-si-cta {
  opacity: 1;
  color: #c79a52;
}
.rc-services-index .rc-si-card:hover .rc-si-cta svg {
  transform: translateX(4px);
}
@media (max-width: 900px) {
  .rc-services-index .rc-si-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .rc-services-index .rc-si-grid { grid-template-columns: 1fr; }
  .rc-services-index { padding: 10px 16px 32px; }
}

/* --- Real photo leading each card (added with the index-image pass) ------
 * The card's own padding moves to .rc-si-body so the image can sit
 * flush to the card edges; cards for services with no real imagery get
 * .rc-si-card--noimg and simply render as before, text-only.
 * --------------------------------------------------------------------- */
.rc-services-index .rc-si-card {
  padding: 0;
}
.rc-services-index .rc-si-thumb {
  display: block;
  overflow: hidden;
}
.rc-services-index .rc-si-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.rc-services-index .rc-si-card:hover .rc-si-thumb img {
  transform: scale(1.04);
}
.rc-services-index .rc-si-body {
  display: block;
  padding: 26px 26px 30px;
}
/* Cards in a row are equal height (grid stretch); pinning the text block to
 * the bottom keeps titles on a common baseline whether or not a given card
 * has a photo above it — otherwise an image-less card floats its text at the
 * top while its neighbours push theirs down. */
.rc-services-index .rc-si-card {
  display: flex;
  flex-direction: column;
}
.rc-services-index .rc-si-body {
  margin-top: auto;
}
