/*
 * Treatment guide pages (template-service-guide.php).
 *
 * Full width and fluid from 300px to 4K via clamp(); touch targets ≥ 48px
 * (design.md §4).
 */

.ml-landing {
  --ml-gold: #c5a059;
  --ml-line: rgba(17, 17, 17, 0.08);
  --ml-muted: #5f5b55;
  --ml-space: clamp(4rem, 9vw, 9rem);
  padding-top: clamp(6.5rem, 12vw, 10rem);
  color: var(--luxe-dark);
  overflow-wrap: anywhere;
}

/* Full width and fluid, matching the site gutters (px-6 md:px-16 lg:px-24). */
.ml-wrap {
  width: 100%;
  padding-inline: 1.5rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .ml-wrap {
    padding-inline: 4rem;
  }
}

@media (min-width: 1024px) {
  .ml-wrap {
    padding-inline: 6rem;
  }
}

.ml-section {
  margin-top: var(--ml-space);
}

/* Typography --------------------------------------------------------- */
.ml-eyebrow {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--luxe-accent);
  margin-bottom: 1.25rem;
}

.ml-eyebrow--light {
  color: var(--ml-gold);
}

.ml-h2 {
  font-weight: 300;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.5rem);
  line-height: 1.12;
  margin: 0 0 1.5rem;
}

.ml-prose p,
.ml-hero__lede p {
  font-weight: 300;
  line-height: 1.85;
  color: var(--ml-muted);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.075rem);
  margin: 0 0 1.25rem;
  max-width: 62ch;
}

.ml-note {
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 300;
  color: var(--ml-muted);
  margin-top: 1.5rem;
  max-width: 62ch;
}

/* Breadcrumb --------------------------------------------------------- */
.ml-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  padding: 0;
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8a857e;
}

.ml-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ml-breadcrumb a:hover {
  color: var(--luxe-dark);
}

.ml-breadcrumb [aria-current] {
  color: var(--luxe-accent);
}

/* Hero --------------------------------------------------------------- */
.ml-hero {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.ml-hero__title {
  font-weight: 300;
  font-size: clamp(2.4rem, 1.4rem + 4.6vw, 6rem);
  line-height: 1.05;
  margin: 0 0 2rem;
}

.ml-hero__accent {
  display: block;
  font-size: 0.62em;
  margin-top: 0.35em;
}

.ml-hero__lede {
  border-left: 2px solid rgba(122, 117, 109, 0.3);
  padding-left: clamp(1rem, 2vw, 1.75rem);
  margin-bottom: 2.5rem;
}

.ml-hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--luxe-bg);
  box-shadow: 0 30px 60px -20px rgba(17, 17, 17, 0.25);
}

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

.ml-price-badge {
  position: absolute;
  top: clamp(0.75rem, 2vw, 2rem);
  right: clamp(0.75rem, 2vw, 2rem);
  background: #fff;
  padding: clamp(0.6rem, 1.2vw, 1rem) clamp(1rem, 2vw, 2rem);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.12);
}

.ml-price-badge__label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8a857e;
  margin-bottom: 0.2rem;
}

.ml-price-badge__value {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem);
}

/* Buttons ------------------------------------------------------------ */
.ml-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ml-cta-row--center {
  justify-content: center;
}

.ml-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 1rem clamp(1.5rem, 3vw, 2.5rem);
  font-size: 0.625rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.ml-btn i {
  font-size: 1rem;
  color: var(--luxe-accent);
}

.ml-btn--primary {
  border: 1px solid var(--luxe-dark);
  color: var(--luxe-dark);
  font-weight: 500;
}

.ml-btn--primary:hover {
  background: var(--luxe-dark);
  color: #fff;
}

.ml-btn--ghost {
  border: 1px solid #e5e5e5;
  color: #4b4b4b;
}

.ml-btn--ghost:hover {
  border-color: var(--luxe-dark);
  color: var(--luxe-dark);
}

.ml-btn--light {
  background: #fff;
  color: var(--luxe-dark);
  font-weight: 500;
}

.ml-btn--light:hover {
  background: var(--ml-gold);
  color: #fff;
}

.ml-btn--outline-light {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.ml-btn--outline-light i {
  color: var(--ml-gold);
}

.ml-btn--outline-light:hover {
  border-color: #fff;
}

/* Facts -------------------------------------------------------------- */
.ml-facts {
  display: grid;
  grid-template-columns: 1fr;
  margin: var(--ml-space) 0 0;
  border-top: 1px solid var(--ml-line);
  border-bottom: 1px solid var(--ml-line);
}

.ml-facts__item {
  padding: clamp(1.25rem, 2.5vw, 2.25rem) clamp(0rem, 1.5vw, 1.5rem);
  border-bottom: 1px solid var(--ml-line);
}

.ml-facts__item:last-child {
  border-bottom: 0;
}

.ml-facts dt {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--luxe-accent);
  margin-bottom: 0.6rem;
}

.ml-facts dd {
  margin: 0;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.35rem);
  line-height: 1.35;
}

/* Split (heading left, copy right) ------------------------------------ */
.ml-split {
  display: grid;
  gap: clamp(1rem, 3vw, 4rem);
  margin-top: var(--ml-space);
}

/* Cards -------------------------------------------------------------- */
.ml-cards {
  display: grid;
  gap: 1px;
  background: var(--ml-line);
  border: 1px solid var(--ml-line);
  margin-top: 2.5rem;
}

.ml-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: inherit;
  text-decoration: none;
}

.ml-card p {
  margin: 0;
  font-weight: 300;
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--ml-muted);
}

.ml-card__title {
  font-weight: 400;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.6rem);
  margin: 0;
  line-height: 1.25;
}

.ml-card__price {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--luxe-accent);
}

.ml-card__more {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--luxe-dark);
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.ml-card--link {
  transition: background-color 0.4s ease;
}

.ml-card--link:hover {
  background: #fff;
}

/* Suitability + practitioner ----------------------------------------- */
.ml-duo {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.ml-ticks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ml-ticks li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ml-line);
  font-weight: 300;
  line-height: 1.6;
  color: #3d3a36;
}

.ml-ticks i {
  color: var(--luxe-accent);
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.ml-practitioner {
  background: #fff;
  border: 1px solid #efefef;
  padding: clamp(1.75rem, 3vw, 3rem);
  box-shadow: 0 10px 40px -20px rgba(17, 17, 17, 0.2);
}

.ml-practitioner__name {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.25rem);
  margin: 0 0 0.25rem;
}

.ml-practitioner__role {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--luxe-accent);
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.ml-practitioner__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--ml-muted);
  line-height: 2;
}

.ml-practitioner__links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ml-line);
}

.ml-practitioner__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--luxe-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--ml-line);
}

.ml-practitioner__links a:hover {
  color: var(--luxe-accent);
}

/* Journey ------------------------------------------------------------ */
.ml-steps {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  gap: clamp(2rem, 3vw, 3rem);
}

.ml-step {
  border-top: 1px solid var(--ml-line);
  padding-top: 1.5rem;
}

.ml-step__num {
  display: block;
  font-size: 2rem;
  color: var(--ml-gold);
  margin-bottom: 0.75rem;
}

.ml-step__title {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.ml-step p {
  margin: 0;
  font-weight: 300;
  font-size: 0.925rem;
  line-height: 1.75;
  color: var(--ml-muted);
}

/* Pricing ------------------------------------------------------------ */
.ml-pricing {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ml-pricing li {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 1rem 0;
  font-weight: 300;
  color: #3d3a36;
}

.ml-pricing__dots {
  flex: 1;
  min-width: 1rem;
  border-bottom: 1px dotted #d4d4d4;
  margin-bottom: 0.35rem;
}

.ml-pricing__value {
  font-size: 1.25rem;
  white-space: nowrap;
}

/* Grouped treatment menu (Chemical Peels) */
.ml-menu {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.ml-menu__title {
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--luxe-dark);
  padding-bottom: 1rem;
  margin: 0 0 1.25rem;
  border-bottom: 1px solid var(--ml-line);
}

.ml-menu__title span {
  color: var(--ml-muted);
}

.ml-menu__desc {
  font-weight: 300;
  line-height: 1.75;
  color: var(--ml-muted);
  margin: 0 0 0.5rem;
  max-width: 60ch;
}

.ml-menu__group .ml-note {
  margin-top: 0.75rem;
}

/* Homepage FAQ: guide styles, without the guide page's header offset */
.ml-landing.ml-home-faq {
  padding-block: var(--ml-space);
  border-top: 1px solid var(--ml-line);
}

.ml-home-faq .ml-split {
  margin-top: 0;
}

/* Directions --------------------------------------------------------- */
.ml-address {
  font-style: normal;
  font-weight: 300;
  line-height: 1.9;
  color: var(--ml-muted);
}

.ml-address a {
  color: var(--luxe-dark);
  display: inline-block;
  min-height: 3rem;
  line-height: 3rem;
}

.ml-directions {
  margin: 0 0 2rem;
  padding-left: 1.25rem;
  font-weight: 300;
  line-height: 1.8;
  color: #3d3a36;
}

.ml-directions li {
  padding: 0.4rem 0;
}

/* FAQ ---------------------------------------------------------------- */
.ml-faq__item {
  border-bottom: 1px solid var(--ml-line);
}

.ml-faq__item:first-child {
  border-top: 1px solid var(--ml-line);
}

.ml-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
}

.ml-faq__item summary::-webkit-details-marker {
  display: none;
}

.ml-faq__item summary h3 {
  margin: 0;
  font-family: "Bulmer", serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.35rem);
  line-height: 1.4;
}

.ml-faq__item summary i {
  flex-shrink: 0;
  color: var(--luxe-accent);
  transition: transform 0.4s ease;
}

.ml-faq__item[open] summary i {
  transform: rotate(45deg);
}

.ml-faq__item p {
  margin: 0 0 1.5rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ml-muted);
  max-width: 62ch;
}

/* Related ------------------------------------------------------------ */
.ml-related {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}

.ml-related__item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ml-related__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 1.25rem;
  transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.ml-related__item:hover img {
  transform: scale(1.03);
}

.ml-related__title {
  font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.75rem);
}

/* Banner ------------------------------------------------------------- */
.ml-banner {
  margin-top: var(--ml-space);
  background: var(--luxe-dark);
  color: #fff;
  text-align: center;
  padding-block: clamp(5rem, 10vw, 9rem);
}

.ml-banner__title {
  text-wrap: balance;
  font-weight: 300;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.25rem);
  line-height: 1.15;
  margin: 0 auto 1.5rem;
  max-width: 22ch;
}

.ml-banner p {
  color: #c9c9c9;
  font-weight: 300;
  line-height: 1.8;
  max-width: 48ch;
  margin: 0 auto 2.5rem;
  text-wrap: balance;
}

/* Breakpoints -------------------------------------------------------- */
@media (max-width: 479px) {
  .ml-cta-row .ml-btn {
    width: 100%;
  }
}

@media (min-width: 640px) {
  .ml-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .ml-facts__item {
    border-bottom: 0;
  }

  .ml-cards,
  .ml-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .ml-related {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .ml-hero {
    grid-template-columns: 7fr 5fr;
  }

  .ml-facts {
    grid-template-columns: repeat(4, 1fr);
  }

  .ml-facts__item + .ml-facts__item {
    border-left: 1px solid var(--ml-line);
  }

  .ml-facts__item {
    padding-inline: 1.5rem;
  }

  .ml-split {
    grid-template-columns: 5fr 7fr;
  }

  .ml-duo {
    grid-template-columns: 7fr 5fr;
  }

  .ml-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .ml-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 2200px) {
  .ml-landing {
    font-size: 1.15rem;
  }
}

/* Peel menu: mesoestetic bottle beside each group */
.ml-menu__group--img {
  display: grid;
  grid-template-columns: clamp(4rem, 9vw, 5.5rem) minmax(0, 1fr);
  column-gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.ml-menu__group--img > :not(.ml-menu__img) {
  grid-column: 2;
}

.ml-menu__img {
  grid-column: 1;
  grid-row: 1 / span 4;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

/* Before & after: drag to compare */
.ml-ba-intro {
  margin: -1rem 0 2rem;
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ml-muted);
}

.ml-ba-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

.ml-ba {
  margin: 0;
}

.ml-ba__frame {
  position: relative;
  aspect-ratio: 900 / 1201;
  overflow: hidden;
  background: var(--luxe-dark, #111);
  user-select: none;
  -webkit-user-select: none;
}

.ml-ba__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ml-ba__layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ml-ba__layer--before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ml-ba__layer--after {
  clip-path: inset(0 0 0 var(--pos));
}

.ml-ba__label {
  position: absolute;
  top: 1rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.5625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(17, 17, 17, 0.55);
  pointer-events: none;
}

.ml-ba__label--before {
  left: 1rem;
}

.ml-ba__label--after {
  right: 1rem;
}

.ml-ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  pointer-events: none;
}

.ml-ba__handle i {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fff;
  color: var(--luxe-dark, #111);
  font-size: 1.1rem;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 20px rgba(17, 17, 17, 0.25);
}

.ml-ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}

.ml-ba__frame:focus-within .ml-ba__handle i {
  outline: 2px solid var(--ml-gold);
  outline-offset: 3px;
}

.ml-ba figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--ml-muted);
}

.ml-ba__group {
  font-size: 1.5rem;
  color: var(--luxe-dark);
}

/* Home care products (Medical-Grade Skincare) */
.ml-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

.ml-product {
  margin: 0;
}

.ml-product img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.ml-product figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.75rem;
}

.ml-product__name {
  font-size: 1.125rem;
  color: var(--luxe-dark);
}

.ml-product__role {
  font-size: 0.75rem;
  color: var(--ml-muted);
}

@media (min-width: 768px) {
  .ml-ba-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ml-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Client call 2026-11-02: facts with the "At home" item, science sections,
   home routine and the homecare card --------------------------------- */
.ml-section__intro {
  max-width: 46rem;
  margin: 1.5rem 0 0;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ml-muted);
}

.ml-step__label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ml-gold);
  margin-bottom: 0.75rem;
}

.ml-facts--stats {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.ml-products + .ml-steps {
  margin-bottom: 2rem;
}

.ml-homecare {
  --ml-gold: #c5a059;
  --ml-muted: #5f5b55;
  display: grid;
  gap: 1.25rem;
  margin-top: var(--ml-space, 3rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  background: #fff;
  border: 1px solid rgba(197, 160, 89, 0.45);
}

.ml-homecare__title {
  margin: 0.75rem 0 0;
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  font-weight: 300;
  line-height: 1.15;
}

.ml-homecare__body p {
  margin: 0 0 1.25rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ml-muted);
}

.ml-homecare__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--luxe-dark);
  text-decoration: underline;
  text-decoration-color: var(--ml-gold);
  text-underline-offset: 0.5em;
}

.ml-homecare__link:hover {
  opacity: 0.6;
}

@media (min-width: 768px) {
  .ml-homecare {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
  }
}

@media (min-width: 1024px) {
  .ml-facts--5 {
    grid-template-columns: repeat(5, 1fr);
  }

  .ml-steps--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Legacy category pages (single-services.php) */
.ml-homecare--legacy {
  grid-template-columns: 1fr !important;
  margin: 0 0 3rem;
}

.ml-consult-first {
  margin: 0 0 3rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(197, 160, 89, 0.45);
  background: #fff;
}

.ml-consult-first .ml-eyebrow {
  color: #c5a059;
  margin-bottom: 0.75rem;
}

.ml-consult-first p {
  margin: 0;
  font-weight: 300;
  line-height: 1.8;
}

/* Cosmelan routine: mixed product photo sizes sit on one line */
.ml-products:has(+ .ml-steps) img {
  aspect-ratio: 1;
  object-fit: contain;
}
