/* ============================================================================
   SECTION 04 — RESIDÊNCIAS  (Figma node 169:6499 "04-residencias")
   Cream section: portrait photo + caption on the left, text / icon-list / CTA
   on the right.
   ========================================================================== */

.residencias {
  background-color: var(--color-bg);
  padding-block: var(--section-pad-y);
}

.residencias__grid {
  display: flex;
  align-items: stretch;
  gap: min(5.5rem, 7vw);          /* 88px at 1440, shrinks on narrower desktops */
}

/* ------------------------------------------------------------- FIGURE ----- */
.residencias__figure {
  flex: 0 1 560px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);             /* 20px */
  margin: 0;
}
.residencias__frame {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background-color: var(--monarca-scrim);
}
.residencias__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}
.residencias__caption {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-eyebrow-size);
  line-height: 1.6;
  letter-spacing: var(--text-eyebrow-tr);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------- BODY ----- */
.residencias__body {
  flex: 1 1 0;
  min-width: 0;
  max-width: 570px;
  display: flex;
  flex-direction: column;
  gap: var(--space-10);            /* 40px */
}

.residencias__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);             /* 32px */
}
.residencias__intro .section-header__title {
  max-width: 33rem;               /* ~516px, matches the Figma wrap */
  color: var(--color-heading);
}
.residencias__text {
  font-size: var(--text-b2-size);
  line-height: var(--text-b2-lh);
  letter-spacing: var(--text-b2-tr);
  color: var(--color-text-secondary);
}

.residencias__cta { align-self: flex-end; }

/* ================================================================ TABLET === */
@media (max-width: 1024px) {
  .residencias__grid {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-12);
  }
  .residencias__figure { flex: none; }
  .residencias__frame {
    flex: none;
    aspect-ratio: 3 / 2;
  }
  .residencias__body { flex: none; max-width: none; }
}

/* ================================================================ MOBILE === */
@media (max-width: 640px) {
  .residencias__frame { aspect-ratio: 4 / 3; }
  .residencias__body { gap: var(--space-8); }
  .icon-box { padding: var(--space-5) 0; gap: var(--space-4); }
  .residencias__cta { align-self: stretch; }
}
