/* =============================================================
   Spartan Agency — Services / Rentals-Teaser section
   Repurposed from ACI's construction-services section for the
   homepage "Home Rentals" and "Apartment/Condo Rentals" teasers.
   Two-column layout: prose column + photo column, alternating
   direction row-to-row.
   ============================================================= */

.tx-services {
  background: var(--surface-content);
  color: var(--text);
  padding-block: var(--section-y);
}

.tx-services__row {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s-5), 4vw, var(--s-9));
  align-items: center;
}

.tx-services__row + .tx-services__row {
  margin-top: var(--section-y);
}

.tx-services__prose {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  align-items: flex-start;
}

.tx-services__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--accent);
}

.tx-services__body {
  font-family: var(--font-prose);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-muted);
  max-width: 44ch;
}

.tx-services__body p + p { margin-top: var(--s-3); }

.tx-services__cta {
  margin-top: var(--s-3);
}

.tx-services__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.tx-services__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reverse-direction row: photo on the left, prose on the right. */
.tx-services__row--reverse .tx-services__prose { order: 2; }
.tx-services__row--reverse .tx-services__media  { order: 1; }

/* ---------- Badge row (NARPM + Sumner + Equal Housing) ---------- */
.tx-badges {
  background: var(--surface-page);
  padding-block: var(--s-7);
}

.tx-badges__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-8);
  flex-wrap: wrap;
}

.tx-badges__inner img {
  max-height: 90px;
  width: auto;
  filter: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .tx-services__row {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
  .tx-services__row--reverse .tx-services__prose { order: unset; }
  .tx-services__row--reverse .tx-services__media  { order: unset; }
}
