/* Appointments — minimal editorial cadence */

.page-appointments {
  --apt-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --apt-max: 72rem;
  --apt-space: clamp(3rem, 5.5vw, 4.25rem);
  --apt-space-sm: clamp(1.5rem, 2.8vw, 2rem);
  --apt-space-xs: clamp(0.85rem, 1.6vw, 1.15rem);
  --apt-spine: rgba(107, 69, 80, 0.14);
  --apt-red: #7a2433;
  --apt-red-soft: #954352;
}

.page-appointments main.apt {
  background: #11080b;
  overflow-x: clip;
}

.page-appointments .header.header--transparent:not(.header--scrolled),
.page-appointments .header.header--invert.header--transparent:not(.header--scrolled) {
  border-bottom: none;
}

.page-appointments:not(.nav-open) .header.header--transparent.header--invert .header__logo-img--dark,
.page-appointments:not(.nav-open) .header.header--transparent.header--on-dark .header__logo-img--dark {
  display: none !important;
}

.page-appointments:not(.nav-open) .header.header--transparent.header--invert .header__logo-img--light,
.page-appointments:not(.nav-open) .header.header--transparent.header--on-dark .header__logo-img--light {
  display: block !important;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.28));
}

.page-appointments:not(.nav-open) .header.header--invert .header__menu span,
.page-appointments:not(.nav-open) .header.header--on-dark .header__menu span {
  background: rgba(255, 252, 248, 0.92);
}

.page-appointments:not(.nav-open) .header.header--invert .header__sound,
.page-appointments:not(.nav-open) .header.header--on-dark .header__sound {
  color: rgba(255, 252, 248, 0.92);
  border-color: rgba(255, 252, 248, 0.28);
  background: transparent;
}

.apt-body {
  background: var(--ivory-warm);
}

.page-appointments .foot-lux {
  background: var(--stone-light);
}

.apt-shell {
  width: min(100%, var(--apt-max));
  margin-inline: auto;
  padding-inline: var(--apt-gutter);
}

/* —— Reveal —— */
.apt-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.95s cubic-bezier(0.22, 0.08, 0.24, 1),
    transform 0.95s cubic-bezier(0.22, 0.08, 0.24, 1);
}

.apt-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .apt-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .apt-hero__img[data-hero-parallax] {
    transform: none !important;
  }
}

/* —— Hero —— */
.apt-hero {
  position: relative;
  height: 100svh;
  min-height: 32rem;
  background: #11080b;
  overflow: hidden;
}

.apt-hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
  line-height: 0;
}

.apt-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  will-change: transform;
  animation: apt-hero-in 1.1s ease both;
}

@keyframes apt-hero-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.apt-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 8, 11, 0.55) 0%,
    rgba(17, 8, 11, 0.12) 34%,
    rgba(17, 8, 11, 0.08) 58%,
    rgba(17, 8, 11, 0.45) 100%
  );
  pointer-events: none;
}

.apt-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: calc(var(--header-h) + clamp(0.75rem, 2vh, 1.25rem));
  color: var(--text-on-dark);
  pointer-events: none;
}

.apt-hero__place {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.46rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(196, 173, 120, 0.88);
}

.apt-hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.05;
  text-transform: uppercase;
  color: rgba(252, 249, 244, 0.98);
}

/* —— Process —— */
.apt-process {
  padding-block: var(--apt-space);
  background: var(--ivory-warm);
}

.apt-process__head {
  margin-bottom: clamp(2rem, 4.5vw, 3rem);
}

.apt-process__label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.46rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.apt-process__head::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 1px;
  margin-top: 0.85rem;
  background: rgba(107, 69, 80, 0.22);
}

.apt-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.apt-steps::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0;
  left: 0.55rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--apt-spine) 8%,
    var(--apt-spine) 92%,
    transparent 100%
  );
  pointer-events: none;
}

.apt-step {
  position: relative;
  padding-block: clamp(2rem, 4.5vw, 3rem);
}

.apt-step + .apt-step {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.apt-step__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--charcoal);
}

.apt-step__text {
  margin: 0.4rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--charcoal-soft);
  max-width: 16em;
}

/* Step 01 — copy left, image right */
.apt-step--intro {
  padding-top: 0;
}

.apt-intro {
  position: relative;
  min-height: clamp(15.5rem, 48vw, 22rem);
}

.apt-intro__n {
  position: absolute;
  top: 0.1rem;
  left: 0;
  z-index: 3;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(107, 69, 80, 0.38);
}

.apt-intro__photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: clamp(6.75rem, 28%, 9rem);
  margin: 0;
  line-height: 0;
  z-index: 1;
}

.apt-intro__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 8%;
}

.apt-intro__copy {
  position: relative;
  z-index: 2;
  padding-left: 2.75rem;
  padding-top: 0.05rem;
}

.apt-step--intro .apt-step__title {
  font-size: clamp(1.15rem, 3.8vw, 1.45rem);
  line-height: 1.12;
  letter-spacing: 0.04em;
}

.apt-step--intro .apt-step__text {
  margin-top: 0.45rem;
  line-height: 1.55;
}

.apt-intro__over {
  color: var(--charcoal);
}

/* Step 02 — mirrored: image left, copy right */
.apt-consult {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8.5rem, 14.5rem);
  column-gap: clamp(0.75rem, 3vw, 1.25rem);
  align-items: start;
  min-height: clamp(15.5rem, 48vw, 22rem);
}

.apt-consult__n {
  position: absolute;
  top: 0.1rem;
  left: 0;
  z-index: 3;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(107, 69, 80, 0.38);
}

.apt-consult__photo {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  line-height: 0;
  z-index: 1;
  min-height: clamp(15.5rem, 48vw, 22rem);
}

.apt-consult__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center 22%;
}

.apt-consult__copy {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  padding-top: 0.05rem;
  text-align: left;
}

.apt-consult__copy .apt-step__title + .apt-consult__line {
  margin-top: 0.65rem;
}

.apt-consult__line {
  margin-top: 0;
}

.apt-consult__line + .apt-consult__line {
  margin-top: 0.18rem;
}

/* Step 03 — text whisper, image drifts right */
.apt-step--final {
  padding-bottom: 0;
}

.apt-final {
  position: relative;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.apt-final__n {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(122, 36, 51, 0.42);
}

.apt-final__copy {
  padding-left: 2.75rem;
  max-width: 16rem;
}

.apt-step--final .apt-step__title {
  color: var(--apt-red);
}

.apt-step--final .apt-step__text {
  color: var(--apt-red-soft);
}

.apt-final__photo {
  margin: 0;
  line-height: 0;
  width: min(100%, 38rem);
  margin-left: clamp(2rem, 18vw, 8rem);
}

.apt-final__photo img {
  display: block;
  width: 100%;
  max-height: min(68vh, 760px);
  object-fit: cover;
  object-position: center 22%;
}

/* —— Close —— */
.apt-close {
  background: var(--warm-dark);
  color: var(--text-on-dark);
  padding-block: var(--apt-space);
  border-top: 1px solid rgba(196, 173, 120, 0.18);
}

.apt-close__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--apt-space-sm);
}

.apt-close__line {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  color: rgba(252, 249, 244, 0.94);
  max-width: 18em;
}

.apt-close__cta {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(196, 173, 120, 0.95);
  border-bottom: 1px solid rgba(196, 173, 120, 0.42);
  padding-bottom: 0.2rem;
}

.apt-close__cta:hover {
  color: var(--text-on-dark);
  border-bottom-color: rgba(252, 249, 244, 0.6);
}

@media (min-width: 768px) {
  .apt-intro {
    min-height: clamp(17.5rem, 34vw, 24rem);
  }

  .apt-intro__photo {
    left: clamp(7.5rem, 26%, 10.5rem);
  }

  .apt-consult {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 16rem);
    min-height: clamp(17.5rem, 34vw, 24rem);
  }

  .apt-consult__photo {
    min-height: clamp(17.5rem, 34vw, 24rem);
  }

  .apt-consult__copy {
    padding-top: 0.35rem;
  }

  .apt-final {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    column-gap: clamp(1.5rem, 4vw, 3rem);
  }

  .apt-final__copy {
    grid-column: 1;
    grid-row: 1;
    padding-left: 2.75rem;
    padding-top: 0.15rem;
  }

  .apt-final__photo {
    grid-column: 1 / -1;
    grid-row: 2;
    width: min(100%, 44rem);
    margin-left: auto;
    margin-right: calc(-1 * var(--apt-gutter));
  }

  .apt-close__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .apt-steps::before {
    display: none;
  }

  .apt-consult {
    grid-template-columns: minmax(0, 1fr) minmax(7.75rem, 11.5rem);
  }

  .apt-consult__copy {
    padding-top: 0.15rem;
  }
}
