/* ==========================================================================
   UYANA — Fascia Sculpt Lift
   Same design language as the Skin Academy build: tokens, eyebrow reveal,
   Marcellus headings, ink outline button, glass cards over a real texture.

   SCOPING NOTE:
   Every rule is scoped under .uyana-fsl. Nothing here touches
   .lqd-highlight-inner or any other shared theme class, so "REAL SKIN
   JOURNEYS" and every existing eyebrow on the live site render unchanged.
   The reveal is a like-for-like copy of the theme's .lqd-highlight-grow-left
   under our own ufs- prefixed names.
   ========================================================================== */

.uyana-fsl {
  /* Ink — DESIGN-SYSTEM.md §2 */
  --ufs-ink: rgb(40, 39, 38);
  --ufs-muted: rgba(40, 39, 38, 0.66);
  /* Resolved from the live theme kit: --e-global-color-primary: #B3842E */
  --ufs-primary: var(--e-global-color-primary, #b3842e);
  --ufs-container: 1340px;
  --ufs-gutter: 24px;

  color: var(--ufs-ink);
  font-family: "Lato", -apple-system, "Segoe UI", sans-serif;
  box-sizing: border-box;
}

.uyana-fsl *,
.uyana-fsl *::before,
.uyana-fsl *::after {
  box-sizing: inherit;
}

.uyana-fsl__inner {
  width: 100%;
  max-width: var(--ufs-container);
  margin-inline: auto;
  padding-inline: var(--ufs-gutter);
}

/* --------------------------------------------------------------------------
   Eyebrow — DESIGN-SYSTEM.md §4
   Pale box + side hairlines from the live "REAL SKIN JOURNEYS" widget
   container (#B3842E0D, padding 0 20px, border-width 0 1px, #BFBFBF).
   Not glass — backdrop-filter stays none here on purpose.
   The hairlines sit on the static box so the reveal transform never squashes
   them.
   -------------------------------------------------------------------------- */

.ufs-eyebrow {
  position: relative;
  display: inline-block;
  margin: 0 0 18px;
  padding: 10px 20px;
  font-family: "Lato", -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ufs-ink);
  border-style: solid;
  border-width: 0 1px;
  border-color: #bfbfbf;
  backdrop-filter: none;
  overflow: hidden;
  z-index: 0;
}

.ufs-highlight {
  position: static;
}

/* Theme's grow-left reveal (scaleX from transform-origin 0,
   .85s cubic-bezier(.3,.8,.35,1)) applied to the pale box itself. */
.ufs-highlight-inner {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #b3842e0d;
  transform: scaleX(0);
  transform-origin: 0;
  transition: transform 0.85s cubic-bezier(0.3, 0.8, 0.35, 1);
  pointer-events: none;
}

.ufs-highlight.is-in-view .ufs-highlight-inner {
  transform: scaleX(1);
}

.ufs-highlight-text {
  position: relative;
  z-index: 1;
}

/* Reduced motion: land on the revealed state, keep the label. */
@media (prefers-reduced-motion: reduce) {
  .ufs-highlight-inner {
    transform: scaleX(1);
    transition: none;
  }
}

/* No-JS safety net — never leave a label unhighlighted. */
.uyana-fsl.no-js .ufs-highlight-inner {
  transform: scaleX(1);
  transition: none;
}

/* --------------------------------------------------------------------------
   Type — DESIGN-SYSTEM.md §3, 25px headings to match the Academy build.
   -------------------------------------------------------------------------- */

.ufs-h2 {
  margin: 0 0 16px;
  font-family: "Marcellus", Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ufs-ink);
}

.ufs-subhead {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ufs-ink);
  max-width: 60ch;
}

.ufs-body {
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ufs-muted);
  max-width: 68ch;
}

.ufs-body:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .ufs-subhead {
    font-size: 17px;
  }
}

/* The RELEASE · SCULPT · LIFT lockup. Gold, letterspaced, no decoration —
   the middot is a separator, not a decorative glyph. */
.ufs-lockup {
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ufs-primary);
}

/* --------------------------------------------------------------------------
   Button — DESIGN-SYSTEM.md §6, drawn in ink for a light background.
   -------------------------------------------------------------------------- */

.ufs-btn {
  display: inline-block;
  padding: 8px 30px;
  font-family: "Lato", -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--ufs-ink);
  background-color: rgba(255, 255, 255, 0);
  border: 1px solid var(--ufs-ink);
  border-radius: 0;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.ufs-btn:hover,
.ufs-btn:focus-visible {
  background-color: var(--ufs-ink);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .ufs-btn {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Section 1 — Hero / positioning
   Text left, image right — a plain, calm split. No sticky, no pointer
   tricks; the image just sits in a clean rounded frame beside the copy.
   -------------------------------------------------------------------------- */

.ufs-hero {
  background-color: rgb(255, 255, 255);
  padding-block: 96px;
}

.ufs-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
}

.ufs-hero__media {
  margin: 0;
  height: auto;
  min-height: 460px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
}

/* The text lives in its own card beside the photo — pale ground, soft
   border, a quiet diagonal sheen behind the copy for a little polish. Purely
   decorative and non-interactive, so it carries no motion to guard behind
   prefers-reduced-motion. */
.ufs-hero__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background-color: rgb(250, 249, 247);
  border: 1px solid rgba(198, 198, 198, 0.5);
  border-radius: 8px;
  /* 24px (the frame's own inset below) + 30px breathing room = this. */
  padding: 54px;
}

.ufs-hero__panel::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -20%;
  width: 160%;
  height: 260%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 42%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 58%
  );
  pointer-events: none;
}

/* A quiet frame drawn around the copy itself — a second, inner line inside
   the panel's own border, echoing the connecting line from the reference
   screenshot. Decorative only. */
.ufs-hero__panel::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: 24px;
  left: 24px;
  border: 1px solid rgba(198, 198, 198, 0.7);
  border-radius: 8px;
  pointer-events: none;
}

.ufs-hero__panel > * {
  position: relative;
}

.ufs-hero__panel > *:last-child {
  margin-bottom: 0;
}

/* Flex children stretch to the panel's full width by default — fine for the
   heading and paragraphs, but it turns the eyebrow chip, subhead and button
   into full-width bars. Let those size to their own content instead. */
.ufs-hero__panel .ufs-eyebrow,
.ufs-hero__panel .ufs-subhead,
.ufs-hero__panel .ufs-btn {
  align-self: flex-start;
}

.ufs-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* One-shot settle-in on load — the hero sits above the fold, so there is
     nothing to trigger this on scroll. Transform-only, so it cannot shift
     layout. */
  transform: scale(1.06);
  animation: ufs-media-in 1.1s cubic-bezier(0.3, 0.8, 0.35, 1) forwards;
}

@keyframes ufs-media-in {
  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ufs-hero__media img {
    animation: none;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .ufs-hero {
    padding-block: 64px;
  }

  .ufs-hero__layout {
    gap: 40px;
  }

  .ufs-hero__media {
    min-height: 380px;
  }
}

@media (max-width: 767px) {
  .ufs-hero {
    padding-block: 48px;
  }

  .ufs-hero__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .ufs-hero__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 8px 8px 0 0;
  }

  .ufs-hero__panel {
    border-radius: 0 0 8px 8px;
    border-top: 0;
    /* 14px frame inset + 30px breathing room = this. */
    padding: 44px;
  }

  .ufs-hero__panel::after {
    top: 14px;
    right: 14px;
    bottom: 14px;
    left: 14px;
  }
}

/* --------------------------------------------------------------------------
   Section 2 — Not just a facial massage. Text left, photo right.
   -------------------------------------------------------------------------- */

.ufs-approach {
  background-color: rgb(248, 247, 245);
  padding-block: 96px;
}

.ufs-approach__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.ufs-approach__block > *:last-child {
  margin-bottom: 0;
}

.ufs-approach__block .ufs-body {
  max-width: 56ch;
}

.ufs-approach__media {
  margin: 0;
  height: auto;
  /* Matches .ufs-hero__media exactly, so a tall, portrait source photo still
     lands at the same frame proportions as Section 1 — not elongated. */
  min-height: 460px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
}

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

@media (max-width: 1024px) {
  .ufs-approach {
    padding-block: 64px;
  }

  .ufs-approach__layout {
    gap: 40px;
  }

  .ufs-approach__media {
    min-height: 380px;
  }
}

@media (max-width: 767px) {
  .ufs-approach {
    padding-block: 48px;
  }

  .ufs-approach__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .ufs-approach__media {
    order: -1;
    min-height: 0;
  }
}

/* --------------------------------------------------------------------------
   Section 3 — The approach. Real glass, over a real background image.
   -------------------------------------------------------------------------- */

.ufs-pillars {
  position: relative;
  padding-block: 96px;
  background-color: rgb(240, 238, 235); /* fallback if the image fails */
  /* A white veil knocks the grain back. Both layers are backgrounds of this
     same section, so they stay part of the cards' backdrop and the blur still
     reads. Raise --ufs-bg-veil towards 1 for a fainter texture. */
  --ufs-bg-veil: 0.82;
  background-image: linear-gradient(
      rgba(255, 255, 255, var(--ufs-bg-veil)),
      rgba(255, 255, 255, var(--ufs-bg-veil))
    ),
    var(--ufs-bg-image);
  background-attachment: fixed, fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* iOS Safari does not honour background-attachment: fixed — it renders the
   image at the wrong scale or drops it. Fall back on touch and narrow. */
@media (max-width: 1024px), (hover: none) {
  .ufs-pillars {
    background-attachment: scroll, scroll;
  }
}

@media (max-width: 1024px) {
  .ufs-pillars {
    padding-block: 64px;
  }
}

@media (max-width: 767px) {
  .ufs-pillars {
    padding-block: 48px;
  }
}

.ufs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .ufs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Exact values from DESIGN-SYSTEM.md §5b (live location cards). */
.ufs-card {
	background-color: rgba(237, 237, 237, 0.5);
	border: 1px solid rgba(198, 198, 198, 0.45);
	border-radius: 8px;
	overflow: hidden;
	backdrop-filter: brightness(1) contrast(1) saturate(1) blur(10px)
	  hue-rotate(0deg);
	-webkit-backdrop-filter: brightness(1) contrast(1) saturate(1) blur(10px)
	  hue-rotate(0deg);
	/* Colour-only transition — nothing here can shift layout. */
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.ufs-card__media {
	display: block;
	width: 100%;
	height: 340px;
	object-fit: cover;
}

.ufs-card__copy {
	padding: 24px 28px 32px;
}

.ufs-card:hover {
  background-color: rgba(237, 237, 237, 0.72);
  border-color: rgba(198, 198, 198, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .ufs-card {
    transition: none;
  }
}

.ufs-card__key {
  display: block;
  margin-bottom: 14px;
  font-family: "Lato", -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ufs-primary);
}

.ufs-card__name {
  margin: 0 0 10px;
  font-family: "Marcellus", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ufs-ink);
}

.ufs-card__desc {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ufs-muted);
}

/* Closing line under the cards. */
.ufs-closing {
  margin: 40px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ufs-primary);
}
