/* Simple, animated development process section */
.sdlc-process-section {
  --sdlc-ink: #1c1917;
  --sdlc-muted: #57534e;
  --sdlc-border: rgba(28, 25, 23, 0.1);
  --sdlc-card: rgba(255, 255, 255, 0.9);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 6.5rem 0 7rem !important;
  color: var(--sdlc-ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(28, 25, 23, 0.11), transparent 28rem),
    #fdfbf7 !important;
}

.sdlc-process-section > .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
}

.sdlc-heading {
  max-width: 680px;
  margin: 0 auto 3.25rem;
  text-align: center;
}



.sdlc-heading h2 {
  margin: 0 !important;
  color: var(--sdlc-ink) !important;
  font-family: var(--font-outfit), 'Outfit', sans-serif !important;
  font-size: clamp(2.35rem, 5vw, 4.2rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.sdlc-heading p {
  max-width: 590px;
  margin: 1rem auto 0;
  color: var(--sdlc-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.sdlc-track {
  /* A real list, so the browser's default indentation and markers do not move
     the grid. `role="list"` is kept deliberately: it is the documented guard
     against a `list-style: none` element losing its list semantics, which is
     exactly what this rule does. */
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.sdlc-step {
  position: relative;
  display: flex;
  min-height: 235px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.6rem 1.65rem;
  overflow: hidden;
  text-align: center;
  background: var(--sdlc-card);
  border: 1px solid var(--sdlc-border);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.05);
  animation: sdlc-step-in 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--step-index, 0) * 90ms);
  transition: border-color 240ms ease, box-shadow 240ms ease;
}

.sdlc-step h3 {
  margin: 0 0 0.9rem;
  color: var(--sdlc-ink);
  font-family: var(--font-outfit), 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 2.1vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  /* Hard, stacked cream offset - a letterpress shadow rather than a soft blur.
     Two steps of cream read as a warm press mark on the near-white card. */
  text-shadow: 2px 2px 0 var(--cream-shadow-near), 4px 4px 0 var(--cream-shadow-far);
  transition: text-shadow 260ms ease;
}

.sdlc-step:hover h3,
.sdlc-step:focus-within h3 {
  text-shadow: 4px 4px 0 var(--cream-shadow-near), 8px 8px 0 #e4dcc8;
}

.sdlc-step p {
  max-width: 26rem;
  margin: 0;
  color: var(--sdlc-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

@keyframes sdlc-step-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .sdlc-process-section {
    padding: 5rem 0 5.5rem !important;
  }

  .sdlc-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  }

@media (max-width: 576px) {
  .sdlc-process-section {
    padding: 4rem 0 4.5rem !important;
  }

  .sdlc-heading {
    margin-bottom: 2.25rem;
  }

  .sdlc-heading h2 {
    font-size: 2.65rem !important;
  }

  .sdlc-heading p {
    font-size: 0.92rem;
  }

  .sdlc-track {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

    .sdlc-step {
    min-height: 0;
    padding: 1.2rem;
  }

  }

/* Keep the section spacing above the global section padding rule. */
section#process.sdlc-process-section,
section#development-cycle.sdlc-process-section {
  padding: 6.5rem 0 7rem !important;
}

@media (max-width: 991px) {
  section#process.sdlc-process-section,
  section#development-cycle.sdlc-process-section {
    padding: 5rem 0 5.5rem !important;
  }
}

@media (max-width: 576px) {
  section#process.sdlc-process-section,
  section#development-cycle.sdlc-process-section {
    padding: 4rem 0 4.5rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
    .sdlc-step {
    animation: none;
    transition: none;
  }

  .sdlc-step:hover,
  .sdlc-step:focus-within {
    transform: none;
  }
}

/* ==========================================================================
   Mobile corrections
   ========================================================================== */

/* `#process` (Next) is absent from the global mobile section reset in
   style.css, so it kept `display:flex !important` + `justify-content:center` +
   `min-height:calc(100vh - 80px)` and drifted out of step with its siblings. */
@media (max-width: 768px) {
  section#process.sdlc-process-section,
  section#development-cycle.sdlc-process-section {
    display: block !important;
    min-height: 0 !important;
    justify-content: normal !important;
  }
}

@media (max-width: 576px) {
  /* The phase label and the step arrow both sat under 11px. */
    /* The arrow repeats the "01" marker already at the top of each card. */
    /* The decorative accent circle sat entirely outside the clip rect, so the
     hover animation had nothing to reveal. */
  }
