/* ================================================
   MANARE RESIDENCE — Section 05 (Wellness/Amenities)
   Asymmetric 50/50 Layout with Overlap 
   ================================================ */

.wellness-section {
  position: relative;
  width: 100%;
  background-color: var(--color-blue-dark);
  color: var(--color-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .wellness-section {
    flex-direction: row;
  }
}

/* ---------- LEFT PANEL (Text Content) ---------- */
.wellness__left {
  width: 100%;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 10;
  min-height: 60vh;
}

@media (min-width: 1024px) {
  .wellness__left {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 6rem;
    padding-right: 15vw; /* give room for the overlap */
    min-height: 100vh;
  }
}

.wellness__title {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: clamp(2.5rem, 4vw, 4rem);
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.wellness__desc {
  font-size: 0.85rem;
  max-width: 380px;
  line-height: 1.8;
  color: var(--color-grey-light);
  margin-bottom: 3rem;
  font-weight: 300;
  opacity: 0.8;
}

/* Sharp Button explicit to this dark background */
.btn-sharp-light {
  padding: 0.8rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08); /* subtle translucent — no backdrop-filter for performance */
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-sharp-light:hover {
  background: var(--color-white);
  color: var(--color-blue-dark);
}

/* ---------- RIGHT PANEL (Background Image) ---------- */
.wellness__right {
  position: relative;
  width: 100%;
  min-height: 50vh;
}

@media (min-width: 1024px) {
  .wellness__right {
    flex: 0 0 50%;
    max-width: 50%;
    min-height: 100vh;
  }
}

.wellness__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- FLOATING CENTER OVERLAP IMAGE ---------- */
.wellness__overlap {
  position: absolute;
  width: 80%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6); /* dramatic grounding shadow */
}

@media (min-width: 1024px) {
  .wellness__overlap {
    width: 35%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 4 / 4.5; /* slightly taller rectangle on desktop */
  }
}

.wellness__overlap-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ensure animation doesn't break centering */
.wellness__overlap.animate-on-scroll {
  transform: translate(-50%, calc(-50% + 30px));
}

.wellness__overlap.animate-on-scroll.is-visible {
  transform: translate(-50%, -50%);
}
