/* Homepage Steps → Acrylic / GelX / Pedicure with nail media */

.malli-steps {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Kill stuck Framer appear animations that leave a blank white stack */
.malli-steps [data-framer-name="Image Stack"],
.malli-steps [data-framer-name="Image Stack"] > *,
.malli-steps [data-framer-name="Image"],
.malli-steps [data-framer-name="Active"],
.malli-steps [data-framer-name="Title Content"],
.malli-steps [data-framer-name="Tab Main"],
.malli-steps [data-framer-name="Tab Desc"] {
  opacity: 1 !important;
  visibility: visible !important;
}

.malli-steps .malli-steps-media {
  position: relative;
  overflow: hidden;
  opacity: 1 !important;
  visibility: visible !important;
  background: #1a1a1a;
  min-height: 180px;
}

.malli-steps .malli-steps-media img {
  object-fit: cover !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.malli-steps .malli-steps-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 2;
  background: transparent;
}

/* Only fade video in once it is actually playing; keep still as poster */
.malli-steps .malli-steps-media.is-active.is-playing .malli-steps-video {
  opacity: 1;
}

.malli-steps .malli-steps-media.is-active.is-playing img {
  opacity: 0 !important;
}

/*
 * Desc + Instagram CTA share one flow row (not absolute-stacked).
 * Wrapper sits where Tab Desc lived so Framer absolute siblings do not overlap.
 */
.malli-steps .malli-steps-desc-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.35rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.malli-steps .malli-steps-desc-row [data-framer-name="Tab Desc"] {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  z-index: 1;
}

/* Outline pill beside service description → Instagram profile feed */
.malli-steps a.malli-steps-ig {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0.55rem 1.15rem;
  border: 1.5px solid #1f3d2c;
  border-radius: 999px;
  background: #fff;
  color: #1f3d2c !important;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.malli-steps a.malli-steps-ig .malli-steps-ig-icon {
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  display: block;
}

.malli-steps a.malli-steps-ig:hover,
.malli-steps a.malli-steps-ig:focus-visible {
  background: #1f3d2c;
  color: #f7f4ea !important;
  outline: none;
}

/* Active tab chrome when we own the control (Framer variants blocked) */
.malli-steps [data-framer-name="Tab TItle"] {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.malli-steps [data-framer-name="Tab TItle"].malli-steps-tab-active {
  opacity: 1 !important;
  outline: 1.5px solid #1f3d2c;
  outline-offset: 6px;
  border-radius: 999px;
}

.malli-steps [data-framer-name="Icon"] {
  cursor: pointer;
}

.malli-steps [data-framer-name="Image Stack"] .malli-steps-media.is-active,
.malli-steps [data-framer-name="Image Stack"] [data-framer-name="Image"].is-active,
.malli-steps [data-framer-name="Image Stack"] [data-framer-name="Active"].is-active {
  z-index: 6 !important;
}

@media (max-width: 809.98px) {
  .malli-steps .malli-steps-desc-row {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .malli-steps a.malli-steps-ig {
    white-space: normal;
    margin-top: 0.15rem;
  }
}
