/* ============================================
   MOVING GUIDE — HOW PAGE
   Prefix: mghow-
   4 steps with scroll-driven progress indicator
   ============================================ */

/* ============================================
   MGHOW-INDICATOR — Sticky Step Progress
   ============================================ */
.mghow-indicator {
  background: var(--mg-white, #FBF9F6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: var(--space-md) var(--space-xl);
  position: relative;
  z-index: 40;
  transition: box-shadow 0.3s ease;
}

.mghow-indicator.is-sticky {
  position: fixed;
  top: 48px; /* below nav-strip */
  left: 0;
  right: 0;
  z-index: 997;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: rgba(251, 249, 246, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.mghow-indicator.is-hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

.mghow-indicator__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}

.mghow-dot {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full, 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-sm);
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background 0.4s ease, color 0.4s ease, transform 0.3s ease;
  background: var(--color-mist, #e8e5e0);
  color: var(--mg-text-muted, #666);
}

.mghow-dot.is-active {
  background: var(--mg-midnight, #0A1628);
  color: var(--mg-gold, #c4918a);
  transform: scale(1.15);
}

.mghow-dot.is-done {
  background: var(--mg-green, #2d6a3f);
  color: #fff;
}

.mghow-line {
  width: 48px;
  height: 2px;
  background: var(--color-mist, #e8e5e0);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  margin-left: -4px;
  margin-right: -4px;
}

.mghow-line__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--mg-green, #2d6a3f);
  transition: width 0.5s ease;
}

.mghow-line.is-filled .mghow-line__fill {
  width: 100%;
}

/* ============================================
   MGHOW-STEP — Step Content Block
   ============================================ */
.mghow-step {
  padding: var(--space-3xl) var(--space-xl);
}

.mghow-step__inner {
  max-width: var(--mg-content-width, 1060px);
  margin: 0 auto;
}

/* Step number */
.mghow-step__number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 5rem;
  line-height: 1;
  color: var(--mg-green, #2d6a3f);
  opacity: 0.6;
  margin-bottom: var(--space-sm);
}

.mghow-step__title {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.mghow-step__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--mg-green, #2d6a3f);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

.mghow-step__intro {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-xl);
  font-style: italic;
  line-height: 1.5;
  color: var(--mg-text-secondary, #4a4a4a);
  max-width: var(--mg-narrow-width, 800px);
  margin-bottom: var(--space-3xl);
}

/* Dark step variants */
.mghow-step--dark {
  background: var(--mg-dark, #243D4F);
  color: var(--color-text-inverse, #faf8f5);
}

.mghow-step--dark .mghow-step__title {
  color: #fff;
}

.mghow-step--dark .mghow-step__title::after {
  background: var(--mg-gold, #c4918a);
}

.mghow-step--dark .mghow-step__number {
  color: var(--mg-aurora, #7dd3c0);
}

.mghow-step--dark .mghow-step__intro {
  color: rgba(250, 248, 245, 0.75);
}

/* ============================================
   MGHOW-SUBSECTION — Content Subdivisions
   ============================================ */
.mghow-sub {
  margin-bottom: var(--space-3xl);
}

.mghow-sub:last-child {
  margin-bottom: 0;
}

.mghow-sub__heading {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-lg);
  padding-left: var(--space-md);
  border-left: 3px solid var(--mg-gold, #c4918a);
}

.mghow-step--dark .mghow-sub__heading {
  color: #fff;
  border-left-color: var(--mg-gold, #c4918a);
}

.mghow-sub__text {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--text-lg);
  line-height: 1.85;
  color: var(--mg-text-secondary, #4a4a4a);
}

.mghow-sub__text p {
  margin-bottom: var(--space-lg);
}

.mghow-sub__text p:last-child {
  margin-bottom: 0;
}

.mghow-sub__text a {
  color: var(--mg-green, #2d6a3f);
  text-decoration: underline;
  text-decoration-color: var(--mg-aurora, #7dd3c0);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.mghow-step--dark .mghow-sub__text {
  color: rgba(250, 248, 245, 0.85);
}

.mghow-step--dark .mghow-sub__text a {
  color: var(--mg-aurora, #7dd3c0);
  text-decoration-color: rgba(125, 211, 192, 0.4);
}

/* ============================================
   MGHOW-SPLIT — Image + Text Side by Side
   ============================================ */
.mghow-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
}

.mghow-split:last-child {
  margin-bottom: 0;
}

.mghow-split--reverse .mghow-split__media {
  order: 2;
}

.mghow-split--reverse .mghow-split__body {
  order: 1;
}

.mghow-split__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md, 0.5rem);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.mghow-step--dark .mghow-split__media img {
  border-radius: var(--radius-md, 0.5rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* ============================================
   MGHOW-SPREAD — Full-Width Image
   ============================================ */
.mghow-spread {
  margin: var(--space-3xl) calc(-1 * var(--space-xl));
  overflow: hidden;
}

.mghow-spread img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.mghow-spread figcaption {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 0.6875rem;
  color: var(--mg-text-muted, #666);
  text-align: right;
  padding: var(--space-xs) var(--space-xl) 0;
}

/* ============================================
   MGHOW-CHECKLIST — Aurora Checkmark List
   ============================================ */
.mghow-checklist {
  max-width: var(--mg-narrow-width, 800px);
  background: var(--mg-midnight, #0A1628);
  border-radius: var(--radius-lg, 1rem);
  padding: var(--space-2xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.mghow-checklist__title {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-lg);
}

.mghow-checklist__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

.mghow-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: rgba(250, 248, 245, 0.85);
}

.mghow-checklist__item::before {
  content: '✓';
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full, 50%);
  background: rgba(125, 211, 192, 0.15);
  color: var(--mg-aurora, #7dd3c0);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

/* Light variant for non-dark sections */
.mghow-checklist--light {
  background: var(--mg-dark, #243D4F);
}

/* ============================================
   MGHOW-ASIDE — Tip Panel (inside steps)
   ============================================ */
.mghow-aside {
  background: var(--mg-midnight, #0A1628);
  border-radius: var(--radius-lg, 1rem);
  padding: var(--space-2xl);
  margin: var(--space-2xl) 0;
  color: var(--color-text-inverse, #faf8f5);
}

.mghow-aside__title {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.mghow-aside__title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--mg-gold, #c4918a);
  border-radius: 2px;
  flex-shrink: 0;
}

.mghow-aside__text {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--text-base);
  line-height: 1.7;
  color: rgba(250, 248, 245, 0.85);
}

.mghow-aside__text p {
  margin-bottom: var(--space-md);
}

.mghow-aside__text p:last-child {
  margin-bottom: 0;
}

.mghow-aside__text a {
  color: var(--mg-aurora, #7dd3c0);
  text-decoration: underline;
  text-decoration-color: rgba(125, 211, 192, 0.4);
}

.mghow-aside__list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm) var(--space-2xl);
}

.mghow-aside__list li {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: rgba(250, 248, 245, 0.85);
  padding-left: var(--space-lg);
  position: relative;
}

.mghow-aside__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--mg-gold, #c4918a);
  font-weight: 700;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .mghow-step__number {
    font-size: 4rem;
  }

  .mghow-step__title {
    font-size: var(--text-2xl);
  }
}

@media (max-width: 768px) {
  .mghow-step {
    padding: var(--space-3xl) var(--space-md);
  }

  .mghow-split {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .mghow-split--reverse .mghow-split__media {
    order: 0;
  }

  .mghow-split--reverse .mghow-split__body {
    order: 0;
  }

  .mghow-indicator__inner {
    max-width: 100%;
    gap: 0;
  }

  .mghow-dot {
    width: 32px;
    height: 32px;
    font-size: var(--text-xs);
  }

  .mghow-line {
    width: 24px;
  }

  .mghow-step__number {
    font-size: 3.5rem;
  }

  .mghow-spread {
    margin: var(--space-2xl) calc(-1 * var(--space-md));
  }

  .mghow-aside__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .mghow-dot {
    width: 28px;
    height: 28px;
  }

  .mghow-line {
    width: 16px;
  }

  .mghow-step__number {
    font-size: 3rem;
  }

  .mghow-checklist {
    padding: var(--space-xl);
  }
}


