/* New Patient Guide: the "what to expect" steps
   ============================================================
   Split heading (title left, intro right), four tall rounded cards
   with a ghosted step number behind bottom-aligned copy, then a
   hairline and two buttons. Motion: the underline draws, cards rise
   in sequence, each ghost number settles and each icon tile pops.
   All of it is off under prefers-reduced-motion.
   ============================================================ */

/* ---------- Hero ---------- */
.np-hero h1 em { font-style: italic; color: var(--c-sea); }
.np-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-16) var(--s-32);
  margin-top: var(--s-32);
}
.np-hero-jump {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-sea-text);
  text-decoration: none;
  border-bottom: 1px solid var(--c-seafoam);
  padding-bottom: 2px;
  transition: border-color var(--d-hover) var(--ease-out);
}
.np-hero-jump svg { transition: transform var(--d-hover) var(--ease-out); }
.np-hero-jump:hover { border-color: var(--c-sea); }
.np-hero-jump:hover svg { transform: translateY(2px); }
.np-hero-jump:focus-visible { outline: 2px solid var(--c-sea); outline-offset: 4px; }

/* Three first-visit facts, each repeated in its own section below. */
.np-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-32);
  list-style: none;
  /* Indented to match .pr-hero-wrap, so the strip lines up with the copy. */
  margin: var(--s-64) 0 0 var(--s-32);
  padding: var(--s-24) 0 0;
  border-top: 1px solid var(--c-stone);
  text-align: left;
}
@media (max-width: 767px) { .np-facts { grid-template-columns: 1fr; gap: var(--s-16); margin: var(--s-48) 0 0 var(--s-16); } }
.np-facts li { display: grid; gap: var(--s-4); }
.np-facts strong { font-size: 15px; font-weight: 600; color: var(--c-deep); }
.np-facts span { font-size: 13px; line-height: 1.5; color: var(--c-slate); }

/* ---------- Heading row ---------- */
.np-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--s-64);
  align-items: end;
  margin-bottom: var(--s-48);
  text-align: left;
}
@media (max-width: 899px) { .np-head { grid-template-columns: 1fr; gap: var(--s-24); } }
.np-head .eyebrow { justify-content: flex-start; margin-bottom: var(--s-16); }
.np-head h2 {
  scroll-margin-top: var(--s-96);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.15;
  color: var(--c-deep);
  margin: 0;
  letter-spacing: -0.005em;
}
@media (max-width: 767px) { .np-head h2 { font-size: 30px; } }
.np-head-sub { font-size: 16px; line-height: 1.65; color: var(--c-slate); margin: 0; max-width: 46ch; }

/* The hand-drawn underline: two strokes that draw in once the
   heading has revealed. Gold on ivory is decorative here, not text. */
.np-underline { position: relative; display: inline-block; white-space: nowrap; }
.np-underline-stroke {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18em;
  width: 100%;
  height: 0.32em;
  overflow: visible;
  pointer-events: none;
}
.np-underline-stroke path {
  fill: none;
  stroke: var(--c-gold);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 700ms var(--ease-in-out) 320ms;
}
.np-underline-stroke path + path { transition-delay: 560ms; stroke-width: 1.6; }
.reveal.in .np-underline-stroke path { stroke-dashoffset: 0; }

/* ---------- Cards ----------
   The site's photo-card pattern: full-bleed photo, dark teal scrim
   from the bottom, gold eyebrow, white heading and copy. The zoom
   lives on the media wrapper, never the <img>, which already carries
   a scroll parallax from animations.css. */
.np-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-16);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 1023px) { .np-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px)  { .np-steps { grid-template-columns: 1fr; } }

.np-step {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 420px;
  padding: var(--s-24);
  border-radius: 24px;
  overflow: hidden;
  background: var(--c-stone);
  box-shadow: var(--e-sm);
  color: var(--c-white);
  text-align: left;
  transition:
    opacity var(--d-enter) var(--ease-out),
    transform var(--d-enter) var(--ease-out),
    box-shadow var(--d-hover) var(--ease-out);
}
@media (max-width: 599px) { .np-step { min-height: 340px; } }

.np-step-media {
  position: absolute;
  inset: 0;
  transform: scale(1.08);
  transition: transform 1100ms var(--ease-out) var(--d, 0ms);
}
.np-step.in .np-step-media { transform: none; }
.np-step-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-step-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 42, 46, 0.9) 0%,
    rgba(12, 42, 46, 0.62) 38%,
    rgba(12, 42, 46, 0.1) 68%,
    rgba(12, 42, 46, 0) 100%
  );
  transition: opacity var(--d-hover) var(--ease-out);
}

.np-step-body { position: relative; z-index: 1; display: grid; gap: var(--s-4); }

.np-step-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s-12);
  border-radius: 10px;
  background: var(--c-white);
  color: var(--c-deep);
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity var(--d-enter) var(--ease-out) calc(var(--d, 0ms) + 200ms),
    transform 420ms var(--ease-out) calc(var(--d, 0ms) + 200ms),
    background var(--d-hover) var(--ease-out);
}
.np-step.in .np-step-icon { opacity: 1; transform: none; }

.np-step-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.np-step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--c-white);
  margin: 0 0 var(--s-4);
}
.np-step p { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.86); margin: 0; }

@media (hover: hover) and (pointer: fine) {
  .np-step.in:hover { transform: translateY(-4px); box-shadow: var(--e-lg); transition-delay: 0ms; }
  .np-step.in:hover .np-step-media { transform: scale(1.06); transition-duration: 600ms; transition-delay: 0ms; }
  .np-step.in:hover .np-step-scrim { opacity: 0.92; }
  .np-step.in:hover .np-step-icon { background: var(--c-seafoam); transition-delay: 0ms; }
}

/* ---------- Hairline and actions ---------- */
.np-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--s-12);
  margin-top: var(--s-48);
  padding-top: var(--s-32);
  border-top: 1px solid var(--c-stone);
}
@media (max-width: 599px) { .np-actions { justify-content: stretch; } .np-actions .btn { flex: 1; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .np-hero-jump svg, .np-hero-jump { transition: none; }
  .np-hero-jump:hover svg { transform: none; }
  .np-underline-stroke path { stroke-dashoffset: 0; transition: none; }
  .np-step, .np-step-media, .np-step-scrim, .np-step-icon { transition: none; }
  .np-step-media, .np-step-icon { opacity: 1; transform: none; }
  .np-step.in:hover, .np-step.in:hover .np-step-media { transform: none; }
}
