/* ==========================================================================
   PROCESS PAGE STYLES
   ========================================================================== */

/* Hero Composition Refinement */
#process {
  padding-top: 140px; /* Ensure clearance below floating navbar */
}
.process-hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}
.process-hero-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .process-hero-row {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}


/* ==========================================================================
   PROCESS JOURNEY (Vertical Storytelling)
   ========================================================================== */
.process-journey {
  position: relative;
  max-width: 800px;
  margin: 0 auto 40px;
  padding-left: 60px;
}
.pj-track {
  position: absolute;
  top: 0;
  left: 19px;
  bottom: 0;
  width: 2px;
}
.pj-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--surface);
}
.pj-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--purple);
  transform-origin: top;
}
.pj-step {
  position: relative;
  margin-bottom: 64px;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}
.pj-step:last-child {
  margin-bottom: 0;
}
.pj-step.active {
  opacity: 1;
}
.pj-node {
  position: absolute;
  top: 8px;
  left: -48px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--surface);
  transition: all 0.5s ease;
  z-index: 2;
}
.pj-step.active .pj-node {
  border-color: var(--purple);
  background: var(--purple);
  box-shadow: 0 0 0 6px rgba(103, 58, 183, 0.1);
}
.pj-content {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  border-left: 4px solid transparent;
  transition: all 0.5s ease;
  transform: translateX(-10px);
}
.pj-step.active .pj-content {
  border-left-color: var(--purple);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  transform: translateX(0);
}
.pj-num {
  font-size: 1rem;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.pj-content h4 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.pj-content p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0;
}


/* ==========================================================================
   GROWTH IMPACT (Header + Animated Graph + Timeline)
   ========================================================================== */
.growth-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 1000px;
  margin: 0 auto 16px;
}
.growth-header-text {
  flex: 1;
  max-width: 560px;
}
.growth-header-illus {
  flex-shrink: 0;
  width: 400px;
  max-width: 45%;
}
.growth-impact-img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .growth-header-row {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .growth-header-illus {
    width: 100%;
    max-width: 320px;
  }
}

.growth-timeline-v2 {
  position: relative;
  margin-top: 16px;
  padding: 0 0 80px;
}

/* Background Animated SVG Graph */
.gt-graph-bg {
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 110%; /* Stretch slightly beyond container */
  height: 380px;
  z-index: 1;
  pointer-events: none;
}
.gt-graph-bg svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* The JS will handle stroke-dashoffset animation */

/* Foreground Cards */
.gt-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2; /* Sit on top of graph */
}
.gt-card {
  position: relative;
  background: var(--white);
  padding: 40px 32px 32px;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--surface);
  transition: all 0.4s ease;
  height: 100%; /* Consistent height */
}
.gt-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}
.gt-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.gt-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.gt-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}


/* ==========================================================================
   SUCCESS METRICS (Radial Composition)
   ========================================================================== */
.metrics-radial-layout {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 80px auto;
  height: 750px; /* Expanded height for more breathing room */
}

/* Central Anchor */
.mr-center-anchor {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  background: radial-gradient(circle, #ffffff 0%, #FAF8FC 100%);
  padding: 40px;
  border-radius: 50%;
  box-shadow: 0 0 120px rgba(103, 58, 183, 0.15), 0 16px 48px rgba(103, 58, 183, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(103, 58, 183, 0.05);
}
.mr-big-8 {
  font-size: 6rem;
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
}
.mr-center-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Orbiting Cards */
.mr-orbit {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.mr-card {
  position: absolute;
  width: 220px;
  background: var(--white);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  pointer-events: auto;
  opacity: 0; /* JS will reveal */
  transform: scale(0.8);
  transition: box-shadow 0.3s ease;
}
.mr-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  z-index: 20;
}
.mr-card .mc-icon {
  width: 40px; height: 40px;
  background: rgba(103, 58, 183, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.mr-card .mc-content h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.mr-card .mc-content p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 0;
}

/* Rough Radial Positioning (Trigonometric approximation for 8 items) */
.m1 { top: 4%; left: 52%; transform: translate(-50%, 0); } /* Reach */
.m2 { top: 15%; right: 14%; transform: translate(0, 0); } /* Engagement */
.m3 { top: 48%; right: 2%; transform: translate(0, -50%); } /* Followers */
.m4 { bottom: 15%; right: 10%; transform: translate(0, 0); } /* Traffic */
.m5 { bottom: 4%; left: 48%; transform: translate(-50%, 0); } /* Lead */
.m6 { bottom: 18%; left: 14%; transform: translate(0, 0); } /* Content */
.m7 { top: 52%; left: 2%; transform: translate(0, -50%); } /* Brand */
.m8 { top: 18%; left: 12%; transform: translate(0, 0); } /* Campaign */

/* Tablet & Mobile Fallback for Metrics Radial Layout */
@media (max-width: 1024px) {
  .metrics-radial-layout {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin: 40px auto;
  }
  .mr-center-anchor {
    position: relative;
    transform: none;
    width: 260px;
    height: 260px;
    left: auto;
    top: auto;
  }
  .mr-orbit {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
  }
  .mr-card {
    position: relative;
    transform: none !important;
    width: 100%;
    opacity: 1; /* Show them since JS ignores them on mobile */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }
}

@media (max-width: 600px) {
  .mr-orbit {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   RESPONSIVE (Shared)
   ========================================================================== */
@media (max-width: 992px) {
  .process-journey {
    padding-left: 40px;
  }
  .pj-track {
    left: 11px;
  }
  .pj-node {
    left: -37px;
  }
  
  .growth-timeline-v2 {
    padding: 24px 0;
  }
  .gt-graph-bg {
    display: none; /* Hide background graph on small screens, too hard to map cleanly */
  }
  .gt-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .gt-card {
    border-top-color: var(--green); /* Add static color since no graph */
  }
}
