/* Contents: 1. Design and motion; 2. Responsive layout. */
/* 1. Design and motion */

.lumiere-service-chapter {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 90px;
  scroll-margin-block-start: 120px;
}
.lumiere-service-chapter[data-lumiere-image-position="end"] {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.lumiere-service-chapter[data-lumiere-image-position="end"]
  .lumiere-service-chapter__intro {
  order: 2;
}
.lumiere-service-chapter[data-lumiere-sticky="true"]
  .lumiere-service-chapter__intro {
  position: sticky;
  inset-block-start: 120px;
}
.lumiere-service-chapter__media {
  position: relative;
  margin-block-end: 30px;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 28px;
  clip-path: inset(0 0 0 0 round 28px);
  transition: clip-path 1.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lumiere-service-chapter__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lumiere-service-chapter__num {
  position: absolute;
  inset-block-end: 16px;
  inset-inline-start: 20px;
  font-family: var(--inoforest-font-heading-family, "Fraunces", Georgia, serif);
  font-size: 4.2rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 6px 30px
    color-mix(in srgb, var(--inoforest-custom-dark, #2b2422) 45%, transparent);
}
.lumiere-service-chapter__title {
  margin-block-end: 14px;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}
.lumiere-service-chapter__intro p {
  margin-block-end: 22px;
}
.lumiere-service-chapter__list {
  margin: 0;
  list-style: none;
  border-block-start: 1px solid var(--inoforest-color-border, #eee4de);
}
.lumiere-treatment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 28px;
  padding-block: 26px;
  border-block-end: 1px solid var(--inoforest-color-border, #eee4de);
  transition:
    opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    translate 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lumiere-treatment-row__name {
  display: inline;
  margin: 0;
  font-size: 1.45rem;
}
.lumiere-treatment-row__name a {
  color: inherit;
  transition: color 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lumiere-treatment-row__tag {
  display: inline-block;
  margin-inline-start: 10px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--inoforest-color-accent, #83663f);
  vertical-align: middle;
  background: var(--inoforest-custom-accent-light, #f6efe4);
  border-radius: 999px;
}
.lumiere-treatment-row__text {
  margin: 6px 0 0;
  font-size: 0.93rem;
}
.lumiere-service-chapter[data-lumiere-show-excerpt="false"]
  .lumiere-treatment-row__text {
  display: none;
}
.lumiere-treatment-row__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--inoforest-custom-muted, #6e6461);
  white-space: nowrap;
}
.lumiere-treatment-row__price {
  font-size: 0.85rem;
  color: var(--inoforest-custom-muted, #6e6461);
  white-space: nowrap;
}
.lumiere-treatment-row__price strong {
  font-family: var(--inoforest-font-heading-family, "Fraunces", Georgia, serif);
  font-size: 1.35rem;
  font-weight: var(--inoforest-font-heading-weight, 500);
  color: var(--inoforest-color-heading, #2e2626);
}
.lumiere-treatment-row__book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 48px;
  height: 48px;
  padding-inline: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--inoforest-color-heading, #2e2626);
  border: 1px solid var(--inoforest-color-border, #eee4de);
  border-radius: 999px;
  transition:
    gap 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    color 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    background 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lumiere-treatment-row__book > :is(i, svg) {
  flex: none;
  line-height: 1;
}
.lumiere-treatment-row__book span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition:
    max-width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lumiere-treatment-row:is(:hover, :focus-within)
  .lumiere-treatment-row__name
  a {
  color: var(--inoforest-color-primary, #9c5466);
}
.lumiere-treatment-row:is(:hover, :focus-within) .lumiere-treatment-row__book {
  gap: 8px;
  color: #fff;
  background: var(--inoforest-color-primary, #9c5466);
  border-color: var(--inoforest-color-primary, #9c5466);
}
.lumiere-treatment-row:is(:hover, :focus-within)
  .lumiere-treatment-row__book
  span {
  max-width: 80px;
  opacity: 1;
}
[dir="rtl"] .lumiere-treatment-row__book i {
  scale: -1 1;
}
@media (hover: none) {
  .lumiere-treatment-row__book {
    gap: 8px;
  }
  .lumiere-treatment-row__book span {
    max-width: 80px;
    opacity: 1;
  }
}
.lumiere-service-chapter.is-pending .lumiere-service-chapter__media {
  clip-path: inset(100% 0 0 0 round 28px);
}
.lumiere-service-chapter.is-pending .lumiere-service-chapter__media img {
  scale: 1.15;
}
.lumiere-service-chapter.is-pending .lumiere-treatment-row {
  opacity: 0;
  translate: 0 24px;
}
.lumiere-treatment-row:nth-child(2) {
  transition-delay: 0.08s;
}
.lumiere-treatment-row:nth-child(3) {
  transition-delay: 0.16s;
}
.lumiere-treatment-row:nth-child(4) {
  transition-delay: 0.24s;
}
.lumiere-treatment-row:nth-child(5) {
  transition-delay: 0.32s;
}
.lumiere-treatment-row:nth-child(6) {
  transition-delay: 0.4s;
}

/* 2. Responsive layout */
@media (max-width: 991px) {
  .lumiere-service-chapter,
  .lumiere-service-chapter[data-lumiere-image-position="end"] {
    grid-template-columns: minmax(0, 1fr);
    gap: 50px;
  }
  .lumiere-service-chapter[data-lumiere-image-position="end"]
    .lumiere-service-chapter__intro {
    order: 0;
  }
  .lumiere-service-chapter[data-lumiere-sticky="true"]
    .lumiere-service-chapter__intro {
    position: static;
  }
  .lumiere-service-chapter__media {
    aspect-ratio: 16/9;
  }
}
@media (max-width: 767px) {
  .lumiere-service-chapter__num {
    font-size: 3rem;
  }
  .lumiere-treatment-row {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 14px 18px;
    padding-block: 22px;
  }
  .lumiere-treatment-row__main {
    grid-column: 1/-1;
  }
  .lumiere-treatment-row__name {
    font-size: 1.25rem;
  }
  .lumiere-treatment-row__book {
    justify-self: end;
  }
}
@media (prefers-reduced-motion: reduce) {
  [class*="lumiere-service-chapter"] *,
  [class*="lumiere-service-chapter"] {
    transition: none;
    animation: none;
  }
}

/* Elementor resets: widget-local base typography and list spacing. */
[class*="lumiere-service-chapter"] {
  box-sizing: border-box;
}
.lumiere-service-chapter :is(h2, h3, p, ul) {
  padding: 0;
}
.lumiere-service-chapter h2,
.lumiere-service-chapter h3 {
  font-family: var(--inoforest-font-heading-family, "Fraunces", Georgia, serif);
  font-weight: 500;
  line-height: 1.14;
  color: var(--inoforest-color-heading, #2e2626);
}
.lumiere-service-chapter__intro p {
  margin-top: 0;
  line-height: 1.75;
}
.lumiere-service-chapter ul {
  padding: 0;
}
.lumiere-service-chapter .lumiere-service-chapter__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.lumiere-service-chapter__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--inoforest-color-primary, #9c5466);
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lumiere-service-chapter .lumiere-service-chapter__link:is(:hover, :focus-visible) {
  color: var(--inoforest-color-primary, #9c5466);
  background-size: 100% 1px;
}
[dir="rtl"] .lumiere-service-chapter__link {
  background-position: 100% 100%;
}
.lumiere-service-chapter .lumiere-treatment-row__name {
  display: inline;
  margin: 0;
}
.lumiere-service-chapter .lumiere-treatment-row__text {
  margin: 6px 0 0;
  line-height: 1.75;
}
.lumiere-service-chapter__intro {
  min-width: 0;
}
.lumiere-treatment-row__main {
  min-width: 0;
}
.lumiere-treatment-row :is(svg) {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.lumiere-service-chapter__media {
  position: relative;
}
.elementor .lumiere-service-chapter__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lumiere-service-chapter__title,
.lumiere-treatment-row__name {
  font-family: var(--inoforest-font-heading-family, "Fraunces", Georgia, serif);
  font-weight: var(--inoforest-font-heading-weight, 500);
  line-height: 1.14;
  color: var(--inoforest-color-heading, #2e2626);
}
.lumiere-treatment-row__price strong {
  margin-inline-start: 0.2em;
}

/* Keep Elementor’s flex wrapper at least as tall as its responsive grid. */
:where(.elementor-widget-lumiere-service-chapter) {
  min-height: var(--lumiere-service-chapter-content-height, 0px);
}
