.section-realestate {
  width: 100%;
  min-height: 100svh;
  margin: 0 0 var(--theme-section-padding) 0;
  padding: calc(2* var(--theme-space-xl)) var(--theme-section-padding);
  background: var(--brand-color-dark);
  color: var(--brand-color-light);
  display: grid;
  grid-template-columns: repeat(var(--theme-grid-columns), 1fr);
  align-items: center;
  position: relative;
  /* z-index: 20; */
}

.section-realestate__content {
  grid-column: span 3;
  padding: var(--theme-section-padding);
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-lg);
}

/* Heading comes from a WYSIWYG field (realestate_heading) — editor
   writes it as one paragraph, adding the line break and accent color
   themselves (Shift+Enter, bold) instead of two fixed text fields +
   a hardcoded <br>, so this targets the tags a rich editor actually
   produces (p, strong) instead of a custom accent class. */
.section-realestate__heading {
  font-size: clamp(1.75rem, 4vw, 4.5rem);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

.section-realestate__heading p {
  margin: 0;
  line-height: 1.2;
}

.section-realestate__heading strong {
  color: var(--theme-color-accent);
  font-weight: inherit;
}

.section-realestate__body {
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-sm);
  color: var(--brand-color-sand);
  font-size: var(--theme-font-size-copy);
}

.section-realestate__figure {
  position: relative;
  margin: 0;
  padding-bottom: var(--theme-space-sm);
  padding-right: var(--theme-space-sm);
  z-index: 3;
}

.section-realestate__figure-cta {
  position: absolute;
  bottom: calc(var(--theme-space-sm) + 0.75em);
  left: 0.75em;
  background-color: rgb(255 255 255 / 90%);
}

.section-realestate__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section-realestate__quote {
  margin: auto;
  padding: var(--theme-space-lg);
  display: flex;
  flex-direction: column;
  background: rgb(0 0 0 / 25%);
  /* height: 100%; */
  /* margin-top: calc(-2 * var(--theme-space-sm)); */
  /* margin-left: calc(-2 * var(--theme-space-sm)); */
  /* margin-right: calc(2 * var(--theme-space-sm)); */
  position: relative;
}

.section-realestate__quote-mark {
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
  color: var(--theme-color-accent);
}

.section-realestate__quote-text {
  margin: 0;
  font-size: 1.125rem;
  /* font-weight: 500; */
}

.section-realestate__quote-byline {
  display: flex;
  align-items: center;
  gap: var(--theme-space-xs);
  margin-top: 2rem;
  color: inherit;
  text-decoration: none;
}

.section-realestate__quote-photo {
  width: 6rem;
  height: 6rem;
  object-fit: cover;
}

.section-realestate__quote-meta {
  display: flex;
  flex-direction: column;
}

.section-realestate__quote-name {
  margin: 0;
  font-weight: 700;
  font-size: 1.2rem;
}

.section-realestate__quote-role {
  margin: 0;
  font-size: 0.875rem;
  color: var(--brand-color-sand);
  text-transform: uppercase;
}

@media (width <= 768px) {
  .section-realestate {
    grid-template-columns: 1fr;
  }

  .section-realestate__content {
    grid-column: span 1;            /* was span 3 — fixes #5 */
    padding: var(--theme-space-md) var(--theme-section-padding);
  }

  .section-realestate__figure {
    grid-column: span 1;            /* overrides col-3 and col-2 uniformly */
    padding-right: 0;               /* only needed for old side-by-side layout */

    /* keep padding-bottom: var(--theme-space-sm) — only vertical gap once stacked, section has no `gap` */
  }

  .section-realestate__quote {
    grid-column: span 1;            /* was col-2 — fixes #2's 80px overshoot */
    margin: var(--theme-space-md) 0 0;   /* was auto, only worked with leftover column width */
  }
}
