/* =========================================================
   Consultation page (page-templates/consultation.php)
   1. Hero (portrait: get to know you)
   2. Details: the steps beside the Blueprint document, booking by branch
   ========================================================= */

/* =========================================================
   1. HERO: "Before we treat your skin, we get to know it."
   ========================================================= */
.cx-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + clamp(36px, 7vh, 80px)) var(--gutter) clamp(56px, 9vh, 100px);
  background: var(--cream);
}
.cx-hero__inner {
  width: 100%; max-width: 1360px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr); gap: clamp(56px, 6vw, 96px); align-items: center;
}
.cx-hero__title { margin-top: 20px; font-size: clamp(42px, 4vw, 64px); font-weight: var(--fw-display); line-height: 1; }
.cx-hero__visual { position: relative; isolation: isolate; }
.cx-hero__visual::before { content: ""; position: absolute; inset: -7% -16% -5%; z-index: -1; border-radius: var(--radius-arch); background: var(--sand); }
.cx-hero__photo { margin: 0; box-shadow: var(--shadow-card); }
.cx-hero__sprig { position: absolute; width: 46%; aspect-ratio: 1; right: -12%; top: -8%; fill: none; stroke: var(--gold-d); stroke-width: 1.1; stroke-linecap: round; opacity: .7; pointer-events: none; }
.cx-hero__pin {
  position: absolute; z-index: 2; display: flex; flex-direction: column; padding: 12px 16px;
  border-radius: 14px; background: var(--paper); box-shadow: 0 24px 50px -24px rgba(20, 16, 11, .45); white-space: nowrap;
}
.cx-hero__pin strong { font-family: var(--serif); font-size: 24px; font-weight: var(--fw-display); line-height: 1.1; }
.cx-hero__pin span { font-size: 10px; font-weight: var(--fw-label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cx-hero__pin--1 { left: -8%; top: 24%; }
.cx-hero__pin--2 { right: -8%; top: 50%; }
.cx-hero__pin--3 { left: -6%; bottom: 8%; }
.cx-hero__lead { margin-bottom: 14px; font-size: var(--fs-lead); }
.cx-hero__right .small { margin-bottom: 28px; }
.cx-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

@media (max-width: 1080px) {
  .cx-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cx-hero__left { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  .cx-hero { min-height: 0; }
  .cx-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cx-hero__visual { width: min(74%, 320px); justify-self: center; }
  .cx-hero__pin { padding: 9px 12px; }
  .cx-hero__pin strong { font-size: 18px; }
  .cx-hero__pin--1 { left: -14%; }
  .cx-hero__pin--2 { right: -14%; }
  .cx-hero__pin--3 { left: -10%; }
}

/* =========================================================
   2. DETAILS: the steps beside the Blueprint document
   ========================================================= */
/* on sand, gold and muted text go a step darker to keep 4.5:1 */
.cx-details { position: relative; z-index: 1; overflow-x: clip;  /* the tilted paper, mid-animation, must not widen the page (clip, not hidden: keeps the sticky form working) */
   padding: var(--space-6) var(--gutter); background: var(--sand); scroll-margin-top: var(--header-h); --gold-d: #6B4403; --muted: #4A4034; }
.cx-details > * { max-width: 1240px; margin-inline: auto; }
.cx-details em { font-style: italic; color: var(--gold-d); }
.cx-details__layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.cx-details__steps .heading { margin: 14px 0 26px; }
.cx-details__steps ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(20, 16, 11, .2); }
.cx-details__steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(20, 16, 11, .2); }
.cx-details__steps span { font-family: var(--serif); font-weight: var(--fw-display); font-size: 26px; line-height: 1; color: var(--gold-d); }
.cx-details__steps h3 { margin-bottom: 4px; font-size: 22px; font-weight: var(--fw-display); }
.cx-details__steps p { font-size: var(--fs-small); color: var(--muted); }
.cx-details__paper {
  position: sticky; top: calc(var(--header-h) + 40px); margin: 0; padding-bottom: 32px;
  border-radius: 6px; background: var(--paper); box-shadow: 0 0 0 1px rgba(20, 16, 11, .08), 0 60px 100px -50px rgba(20, 16, 11, .55);
  transform: rotate(1.5deg);
}
.cx-details__band { display: flex; align-items: center; gap: 16px; padding: 26px 36px; border-radius: 6px 6px 0 0; background: var(--ink); color: var(--cream); }
.cx-details__brand { font-family: var(--serif); font-size: 14px; letter-spacing: .42em; }
.cx-details__name { font-family: var(--serif); font-style: italic; font-weight: var(--fw-display); font-size: 32px; line-height: 1.1; color: var(--gold-l); }
.cx-details__for { display: flex; align-items: baseline; gap: 12px; margin: 28px 36px 6px; font-size: 11px; font-weight: var(--fw-label); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cx-details__for span { flex: 1; border-bottom: 1px solid var(--line-strong); }
.cx-details__fields { list-style: none; margin: 14px 36px 0; padding: 0; }
.cx-details__fields li { padding-top: 14px; }
.cx-details__label { font-family: var(--serif); font-weight: var(--fw-display); font-size: 21px; }
.cx-details__fields i { display: block; height: 22px; border-bottom: 1px dotted rgba(140, 90, 5, .6); transform-origin: left; }
.cx-details__paper figcaption { margin: 22px 36px 0; font-size: 13px; color: var(--muted); }
.cx-details__book { margin-top: var(--space-5); margin-bottom: 20px; }
.cx-details__fee { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 16px; }
.cx-details__fee p { max-width: 440px; color: var(--muted); }

/* Book at either branch (template-parts/consultation/branches.php) */
.cx-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); scroll-margin-top: calc(var(--header-h) + 20px); }
.cx-branch { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-card); }
.cx-branch__label { font-size: 11px; font-weight: var(--fw-label); letter-spacing: .2em; text-transform: uppercase; }
.cx-branch__name { font-size: clamp(28px, 2.6vw, 38px); font-weight: var(--fw-display); line-height: 1.05; }
.cx-branch__addr { margin-bottom: 14px; font-size: var(--fs-small); }
.cx-branch__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: auto; }
.cx-branches--light .cx-branch { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-gold), 0 24px 50px -36px rgba(20, 16, 11, .45); }
.cx-branches--light .cx-branch__label { color: var(--gold-d); }
.cx-branches--light .cx-branch__addr { color: var(--muted); }
.cx-branches--dark .cx-branch { background: rgba(250, 244, 232, .06); box-shadow: inset 0 0 0 1px var(--line-gold-l); color: var(--cream); }
.cx-branches--dark .cx-branch__label { color: var(--gold-l); }
.cx-branches--dark .cx-branch__addr { color: var(--text-dark-2); }
.cx-branches--dark .link { color: var(--gold-l); }

@media (max-width: 899px) {
  .cx-branches { grid-template-columns: minmax(0, 1fr); }
  .cx-details__layout { grid-template-columns: minmax(0, 1fr); }
  .cx-details__paper { position: static; transform: none; }
  .cx-details__band { padding: 20px 22px; }
  .cx-details__for, .cx-details__fields, .cx-details__paper figcaption { margin-inline: 22px; }
}
