/* PROCESS-STEPS v2 — "Our Simple Process" original Cloud layout.
   Source: Cloud Roofing (see SOURCE.md) — photo bleeds to the section's edge on the left,
   fades into the background, three stacked number+title+text rows sit on the right.
   Classes prefixed .steps2-. Mobile-first: base rules are the stacked layout (photo on
   top with a bottom fade), the 50/50 row split + right-fade is a min-width override. */

.steps2 {
  background: var(--c-bg);
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

/* --- Photo: bleeds to the true edge (no outer container), fades into --c-bg
   via a ::after gradient instead of a hard edge. Absolute+cover on both breakpoints
   so a real personalizer photo never causes layout shift (fpanel2 precedent). --- */

.steps2-photo-wrap {
  width: 100%;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.steps2-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.steps2-photo-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, var(--c-bg));
  pointer-events: none;
}

.steps2-content {
  width: 100%;
  padding: var(--space-4) var(--space-3);
}

.steps2-header {
  margin-bottom: var(--space-3);
}

.steps2-heading {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  color: var(--c-text);
  margin: 0;
}

/* Cloud's yellow "stub" underline: short, skewed, flush-left under the heading. */
.steps2-underline {
  width: 3.5rem;
  height: 0.4rem;
  background: var(--c-accent);
  transform: skewX(-20deg);
  margin-top: var(--space-1);
}

.steps2-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.steps2-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  background: var(--c-bg-alt);
  border-radius: var(--radius);
  border-bottom: 4px solid var(--c-accent);
  padding: var(--space-2);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.steps2-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c-accent) 70%, white);
  box-shadow: var(--shadow-card);
}

.steps2-number-wrap {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps2-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--c-accent-contrast);
}

.steps2-body {
  flex: 1 1 auto;
  min-width: 0;
}

.steps2-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-text);
  margin: 0 0 0.3rem;
}

.steps2-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--c-text-muted);
  margin: 0;
}

/* --- Desktop: true 50/50 row split (source's exact ratio), fade moves to the
   photo's right edge where it meets the text column. --- */
@media (min-width: 900px) {
  .steps2-photo-wrap {
    width: 50%;
    min-height: 0;
  }

  .steps2-photo-wrap::after {
    inset: 0 0 0 auto;
    width: 22%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--c-bg));
  }

  .steps2-content {
    width: 50%;
    padding: var(--space-5) var(--space-4);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .steps2-number-wrap {
    width: 4.5rem;
    height: 4.5rem;
  }

  .steps2-number {
    font-size: 2.1rem;
  }

  .steps2-title {
    font-size: 1.15rem;
  }

  .steps2-text {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steps2-card {
    transition: none;
  }
}
