/* ============================================================
   SECTION 2a — RESIDENCES & CONFIGURATIONS  (editorial spec list)
   ============================================================ */

/* ---------- Section shell ---------- */
.section-residences {
  position: relative;
  background: var(--jet);
  overflow: hidden;
  padding-block: clamp(2.5rem, 4.5vw, 4rem) clamp(2rem, 3.5vw, 3rem);
}

/* faint watermark — top-right anchored, mirrors overview's watermark */
.res-watermark {
  position: absolute;
  top: -4%;
  right: -1%;
  z-index: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(9rem, 22vw, 20rem);
  line-height: 0.82;
  color: rgba(255, 255, 255, 0.018);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ---------- Header block (centered editorial intro) ---------- */
.res-head {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.res-head .section-title {
  margin-top: 1.1rem;
  margin-bottom: 1.1rem;
}

.res-head .lede {
  margin-inline: auto;
}

/* ---------- Configuration list ---------- */
.res-list {
  position: relative;
  z-index: 2;
}

.res-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.8rem, 3.4vw, 2.8rem) 0;
  border-top: 1px solid var(--line-soft);
  transition: background 0.5s var(--ease);
}
.res-list .res-row:last-child {
  border-bottom: 1px solid var(--line-soft);
}
.res-row:hover {
  background: rgba(198, 161, 91, 0.035);
}

/* left group: index + identity, kept tight while the row spaces
   this group evenly against the size figure and the CTA */
.res-primary {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex: 0 1 480px;
  min-width: 0;
}

/* index numeral, e.g. "01" */
.res-index {
  flex: 0 0 auto;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: var(--gold-deep);
  opacity: 0.75;
}

/* identity: name + short descriptor */
.res-id {
  min-width: 0;
}
.res-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  color: var(--paper);
  line-height: 1.08;
  margin-bottom: 0.5rem;
}
.res-note {
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.6;
}

/* size — the prominent, scannable figure */
.res-size {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  flex: 0 0 auto;
  white-space: nowrap;
}
.res-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: var(--gold);
  line-height: 1;
}
.res-unit {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Pricing CTA — ghost pill, fills gold on hover ---------- */
.res-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.9em 1.35em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition:
    color 0.45s var(--ease),
    border-color 0.45s var(--ease);
}
.res-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}
.res-cta:hover,
.res-cta:focus-visible {
  color: var(--jet);
  border-color: var(--gold);
}
.res-cta:hover::before,
.res-cta:focus-visible::before {
  transform: translateY(0);
}
.res-cta .arrow {
  display: inline-block;
  transition: transform 0.45s var(--ease);
}
.res-cta:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Responsive: tablet / small desktop ---------- */
@media (max-width: 1000px) {
  .res-row {
    gap: 1.6rem;
  }
}

/* ---------- Responsive: mobile — stack into a vertical rhythm ---------- */
@media (max-width: 600px) {
  .res-row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.9rem;
  }
  .res-primary {
    flex: 0 1 auto;
    width: 100%;
  }
  .res-cta {
    padding: 1em 1.4em;
    font-size: 0.68rem;
  }
}
