/*
 * MMP — How It Works page styles
 * File: mmp-astra-child/assets/css/how-it-works.css
 */

/* ── SHARED UTILITIES ───────────────────────────────────────── */

.mmp-section-label {
  font-family: var(--mmp-font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mmp-page-sage);
  margin: 0 0 8px;
}

.mmp-label-light {
  color: rgba(255, 250, 241, 0.48);
}

.mmp-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
}

.mmp-section-title {
  font-family: var(--mmp-font-heading) !important;
  font-weight: 700 !important;
  font-size: 28px !important;
  line-height: 1.1 !important;
  color: var(--mmp-page-ink) !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
}

/* ── HERO ───────────────────────────────────────────────────── */

.mmp-hiw-hero {
  background:
    radial-gradient(circle at 82% 12%, rgba(216, 180, 106, 0.26), transparent 34%),
    linear-gradient(180deg, var(--mmp-page-paper), var(--mmp-page-cream));
  padding: 64px 40px 56px;
  border-bottom: 1px solid var(--mmp-page-border-light);
}

.mmp-hiw-hero-inner {
  gap: 60px !important;
  align-items: flex-end;
}

.mmp-hiw-headline {
  font-family: var(--mmp-font-heading) !important;
  font-weight: 800 !important;
  font-size: 46px !important;
  line-height: 1.06 !important;
  color: var(--mmp-page-ink) !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 20px !important;
}

.mmp-hiw-hero-body {
  font-family: var(--mmp-font-editorial);
  font-size: 16px;
  line-height: 1.7;
  color: var(--mmp-page-muted);
  margin: 0;
}

/* Step pills in hero */

.mmp-hiw-steps-list {
  border: 1px solid var(--mmp-page-border-light);
  padding: 0 !important;
  background: var(--mmp-white);
  box-shadow: var(--mmp-shadow-subtle);
}

.mmp-hiw-step-pill {
  display: flex !important;
  align-items: center;
  gap: 16px;
  padding: 18px 22px !important;
  border-bottom: 1px solid var(--mmp-page-border-light);
  margin: 0 !important;
}

.mmp-hiw-step-pill:last-child {
  border-bottom: none;
}

.mmp-hiw-step-pill:nth-child(1) .mmp-step-num {
  background: var(--mmp-page-blue);
}

.mmp-hiw-step-pill:nth-child(2) .mmp-step-num {
  background: var(--mmp-page-sage);
}

.mmp-hiw-step-pill:nth-child(3) .mmp-step-num {
  background: var(--mmp-page-clay);
}

.mmp-hiw-step-pill:nth-child(4) .mmp-step-num {
  background: var(--mmp-page-ink);
}

.mmp-step-num {
  font-family: var(--mmp-font-heading);
  font-weight: 800;
  font-size: 13px;
  color: var(--mmp-page-paper);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  margin: 0 !important;
}

.mmp-step-name {
  font-family: var(--mmp-font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--mmp-page-ink);
  margin: 0 !important;
  letter-spacing: 0.01em;
}

/* ── PHASE SECTIONS ─────────────────────────────────────────── */

.mmp-hiw-phase {
  background: var(--mmp-page-paper);
  border-bottom: 1px solid var(--mmp-page-border-light);
}

.mmp-phase-inner {
  gap: 0 !important;
  align-items: stretch;
}

.mmp-phase-num-col {
  padding: 48px 32px !important;
  border-right: 1px solid var(--mmp-page-border-light);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--mmp-page-cream);
}

.mmp-phase-even .mmp-phase-num-col {
  border-right: none;
  border-left: 1px solid var(--mmp-page-border-light);
}

.mmp-phase-big-num {
  font-family: var(--mmp-font-heading);
  font-weight: 800;
  font-size: 72px;
  line-height: 1;
  margin: 0 0 12px !important;
  letter-spacing: -0.03em;
}

.mmp-phase-label {
  font-family: var(--mmp-font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 8px !important;
}

.mmp-phase-name {
  font-family: var(--mmp-font-heading) !important;
  font-weight: 800 !important;
  font-size: 22px !important;
  color: var(--mmp-page-ink) !important;
  margin: 0 !important;
  letter-spacing: -0.01em !important;
}

.mmp-phase-body-col {
  padding: 48px 40px !important;
}

.mmp-phase-odd:nth-of-type(2) .mmp-phase-num-col {
  background: rgba(63, 84, 97, 0.10);
}

.mmp-phase-odd:nth-of-type(2) .mmp-phase-big-num,
.mmp-phase-odd:nth-of-type(2) .mmp-phase-label {
  color: var(--mmp-page-blue);
}

.mmp-phase-even:nth-of-type(3) .mmp-phase-num-col {
  background: rgba(107, 124, 122, 0.14);
}

.mmp-phase-even:nth-of-type(3) .mmp-phase-big-num,
.mmp-phase-even:nth-of-type(3) .mmp-phase-label {
  color: var(--mmp-page-sage);
}

.mmp-phase-odd:nth-of-type(4) .mmp-phase-num-col {
  background: rgba(138, 95, 69, 0.14);
}

.mmp-phase-odd:nth-of-type(4) .mmp-phase-big-num,
.mmp-phase-odd:nth-of-type(4) .mmp-phase-label {
  color: var(--mmp-page-clay);
}

.mmp-phase-even:nth-of-type(5) .mmp-phase-num-col {
  background: rgba(216, 180, 106, 0.18);
}

.mmp-phase-even:nth-of-type(5) .mmp-phase-big-num,
.mmp-phase-even:nth-of-type(5) .mmp-phase-label {
  color: #9a7435;
}

.mmp-phase-img {
  margin: 0 0 24px !important;
}

.mmp-phase-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--mmp-page-blue), var(--mmp-page-clay));
}

.mmp-phase-img img[src=""] {
  background: linear-gradient(135deg, var(--mmp-page-blue), var(--mmp-page-clay));
  height: 180px;
}

.mmp-phase-intro {
  font-family: var(--mmp-font-editorial);
  font-size: 15px;
  line-height: 1.7;
  color: var(--mmp-page-muted);
  margin: 0 0 32px !important;
}

/* Activity grid */

.mmp-activity-grid {
  gap: 16px !important;
}

.mmp-activity {
  padding: 18px 20px !important;
  border: 1px solid var(--mmp-page-border-light);
  background: var(--mmp-white);
  box-shadow: 0 4px 12px rgba(48, 43, 40, 0.04);
}

.mmp-activity-grid .wp-block-column:nth-child(1) .mmp-activity {
  border-top: 3px solid var(--mmp-page-blue);
}

.mmp-activity-grid .wp-block-column:nth-child(2) .mmp-activity {
  border-top: 3px solid var(--mmp-page-sage);
}

.mmp-activity-grid .wp-block-column:nth-child(3) .mmp-activity {
  border-top: 3px solid var(--mmp-page-clay);
}

.mmp-activity-grid .wp-block-column:nth-child(4) .mmp-activity {
  border-top: 3px solid var(--mmp-page-gold);
}

.mmp-activity-name {
  font-family: var(--mmp-font-heading) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  color: var(--mmp-page-ink) !important;
  margin: 0 0 6px !important;
  letter-spacing: 0.01em !important;
}

.mmp-activity-desc {
  font-family: var(--mmp-font-body);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--mmp-page-sage);
  margin: 0 !important;
}

/* ── CYCLE BAND ─────────────────────────────────────────────── */

.mmp-hiw-cycle {
  padding: 56px 40px;
  background:
    radial-gradient(circle at 12% 20%, rgba(216, 180, 106, 0.20), transparent 30%),
    linear-gradient(135deg, var(--mmp-page-ink), var(--mmp-page-blue));
}

.mmp-hiw-cycle .mmp-section-label {
  margin-bottom: 36px;
}

.mmp-cycle-track {
  gap: 0 !important;
  border: 1px solid rgba(255, 250, 241, 0.16);
}

.mmp-cycle-node {
  padding: 20px 18px !important;
  border-right: 1px solid rgba(255, 250, 241, 0.16);
  background: rgba(255, 250, 241, 0.045);
}

.mmp-cycle-node:last-child {
  border-right: none;
}

.mmp-cycle-node:nth-child(2) {
  background: rgba(255, 250, 241, 0.075);
}

.mmp-cycle-node:nth-child(3) {
  background: rgba(216, 180, 106, 0.08);
}

.mmp-cycle-node:nth-child(4) {
  background: rgba(107, 124, 122, 0.16);
}

.mmp-cycle-num {
  font-family: var(--mmp-font-heading);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mmp-page-gold);
  opacity: 0.9;
  margin: 0 0 6px !important;
}

.mmp-cycle-name {
  font-family: var(--mmp-font-heading) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  color: var(--mmp-page-paper) !important;
  margin: 0 0 6px !important;
  letter-spacing: 0.01em !important;
}

.mmp-cycle-sub {
  font-family: var(--mmp-font-body);
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 250, 241, 0.58);
  margin: 0 !important;
}

/* ── PRINCIPLES ─────────────────────────────────────────────── */

.mmp-hiw-principles {
  padding: 56px 40px;
  background:
    linear-gradient(180deg, var(--mmp-page-cream), var(--mmp-page-paper));
  border-bottom: 1px solid var(--mmp-page-border-light);
}

.mmp-principles-grid {
  gap: 16px !important;
  margin-bottom: 16px;
}

.mmp-principles-grid:last-of-type {
  margin-bottom: 0;
}

.mmp-principle {
  background: var(--mmp-white);
  border: 1px solid var(--mmp-page-border-light);
  padding: 28px 28px 32px !important;
  box-shadow: 0 4px 12px rgba(48, 43, 40, 0.04);
}

.mmp-principles-grid:nth-of-type(2) .wp-block-column:nth-child(1) .mmp-principle {
  border-left: 4px solid var(--mmp-page-blue);
}

.mmp-principles-grid:nth-of-type(2) .wp-block-column:nth-child(2) .mmp-principle {
  border-left: 4px solid var(--mmp-page-sage);
}

.mmp-principles-grid:nth-of-type(3) .wp-block-column:nth-child(1) .mmp-principle {
  border-left: 4px solid var(--mmp-page-clay);
}

.mmp-principles-grid:nth-of-type(3) .wp-block-column:nth-child(2) .mmp-principle {
  border-left: 4px solid var(--mmp-page-gold);
}

.mmp-principle-name {
  font-family: var(--mmp-font-heading) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  color: var(--mmp-page-ink) !important;
  margin: 0 0 10px !important;
  letter-spacing: 0.01em !important;
}

.mmp-principle-body {
  font-family: var(--mmp-font-editorial);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--mmp-page-muted);
  margin: 0 !important;
}

/* ── CTA ────────────────────────────────────────────────────── */

.mmp-hiw-cta {
  background:
    radial-gradient(circle at 88% 18%, rgba(216, 180, 106, 0.24), transparent 32%),
    var(--mmp-page-paper);
  padding: 64px 40px;
  border-bottom: 1px solid var(--mmp-page-border-light);
}

.mmp-cta-inner {
  gap: 40px !important;
  align-items: flex-start;
}

.mmp-cta-headline {
  font-family: var(--mmp-font-heading) !important;
  font-weight: 800 !important;
  font-size: 36px !important;
  color: var(--mmp-page-ink) !important;
  margin: 0 0 16px !important;
  letter-spacing: -0.01em !important;
  line-height: 1.1 !important;
}

.mmp-cta-body {
  font-family: var(--mmp-font-editorial);
  font-size: 15px;
  line-height: 1.65;
  color: var(--mmp-page-muted);
  margin: 0 !important;
}

.mmp-cta-card {
  border: 1px solid var(--mmp-page-border-light);
  background: var(--mmp-white);
  padding: 20px 24px !important;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(48, 43, 40, 0.04);
}

.mmp-cta-card:nth-child(1) {
  border-left: 4px solid var(--mmp-page-blue);
}

.mmp-cta-card:nth-child(2) {
  border-left: 4px solid var(--mmp-page-sage);
}

.mmp-cta-card:nth-child(3) {
  border-left: 4px solid var(--mmp-page-clay);
}

.mmp-cta-card:last-child {
  margin-bottom: 0;
}

.mmp-cta-card-name {
  font-family: var(--mmp-font-heading) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  color: var(--mmp-page-ink) !important;
  margin: 0 0 4px !important;
  letter-spacing: 0.01em !important;
}

.mmp-cta-card-sub {
  font-family: var(--mmp-font-body);
  font-size: 12px;
  color: var(--mmp-page-sage);
  margin: 0 0 14px !important;
}

.mmp-btn-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--mmp-page-ink) !important;
  border: 1px solid var(--mmp-page-border) !important;
  border-radius: 0 !important;
  font-family: var(--mmp-font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 8px 18px;
}

.mmp-btn-outline .wp-block-button__link:hover {
  background: var(--mmp-page-ink) !important;
  color: var(--mmp-page-paper) !important;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 768px) {
  .mmp-hiw-hero,
  .mmp-hiw-phase,
  .mmp-hiw-cycle,
  .mmp-hiw-principles,
  .mmp-hiw-cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .mmp-hiw-hero-inner,
  .mmp-phase-inner,
  .mmp-cta-inner {
    flex-direction: column !important;
  }

  .mmp-hiw-headline {
    font-size: 32px !important;
  }

  .mmp-phase-num-col {
    border-right: none !important;
    border-left: none !important;
    border-bottom: 1px solid var(--mmp-page-border-light);
    padding: 24px 20px !important;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .mmp-phase-big-num {
    font-size: 48px;
    margin: 0 !important;
  }

  .mmp-phase-body-col {
    padding: 24px 20px !important;
  }

  .mmp-activity-grid {
    flex-direction: column !important;
  }

  .mmp-cycle-track {
    flex-direction: column !important;
  }

  .mmp-cycle-node {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 250, 241, 0.12);
  }

  .mmp-cycle-node:last-child {
    border-bottom: none;
  }

  .mmp-principles-grid {
    flex-direction: column !important;
  }
}

/* ==========================================================================
   How It Works container width fixes
   Keeps section backgrounds full-width while constraining content.
   ========================================================================== */

.mmp-hiw-hero-inner,
.mmp-phase-inner,
.mmp-cycle-track,
.mmp-section-header,
.mmp-principles-grid,
.mmp-cta-inner {
  max-width: var(--mmp-container-wide-width);
  width: calc(100% - (var(--mmp-container-padding) * 2));
  margin-inline: auto;
}

.mmp-phase-inner,
.mmp-cycle-track,
.mmp-principles-grid {
  box-sizing: border-box;
}