/* =========================================================
   SERTECHS — WORK PROCESS GRID SECTION
   Scoped to .sr-process-grid to prevent style conflicts
   ========================================================= */

.sr-process-grid {
  --sr-orange: #ff6500;
  --sr-orange-soft: #fff0e6;
  --sr-cream: #fbf8f4;
  --sr-card: #fffdfb;
  --sr-text: #111111;
  --sr-muted: #676767;
  --sr-border: #e8e0d8;
  --sr-dark: #141414;

  position: relative;
  overflow: hidden;
  padding: clamp(90px, 9vw, 150px) 0;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 101, 0, .045), transparent 27%),
    radial-gradient(circle at 84% 78%, rgba(255, 101, 0, .04), transparent 26%),
    var(--sr-cream);
  font-family: "Inter", sans-serif;
}

.sr-process-grid * {
  box-sizing: border-box;
}

.sr-process-grid .sr-container {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- Section heading ---------- */
.sr-process-grid__intro {
  max-width: 860px;
  margin-bottom: clamp(50px, 6vw, 84px);
}

.sr-process-grid .sr-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: #111;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.sr-process-grid .sr-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sr-orange);
  box-shadow: 0 0 0 6px rgba(255, 101, 0, .10);
}

.sr-process-grid__intro h2 {
  max-width: 920px;
  margin: 0;
  color: var(--sr-text);
  font-size: clamp(48px, 6.2vw, 92px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.055em;
}

.sr-process-grid__intro h2 em {
  color: var(--sr-orange);
  font-style: normal;
  font-weight: 800;
}

.sr-process-grid__intro > p:last-child {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--sr-muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.65;
}

/* ---------- Cards grid ---------- */
.sr-process-grid__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.sr-process-card {
  overflow: hidden;
  border: 1px solid var(--sr-border);
  border-radius: 24px;
  background: rgba(255, 253, 251, .92);
  box-shadow: 0 16px 50px rgba(46, 32, 20, .07);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease, border-color .5s ease;
}

.sr-process-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 101, 0, .25);
  box-shadow: 0 24px 70px rgba(46, 32, 20, .12);
}

.sr-process-card__visual {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--sr-border);
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 101, 0, .10), transparent 48%),
    linear-gradient(180deg, #fffefd 0%, #fff8f2 100%);
}

.sr-process-card__body {
  padding: 34px 36px 38px;
}

.sr-process-card__title-row {
  display: grid;
  grid-template-columns: auto 1px 1fr;
  align-items: center;
  gap: 18px;
}

.sr-process-card__number {
  color: var(--sr-orange);
  font-size: clamp(38px, 3.3vw, 54px);
  font-weight: 800;
  letter-spacing: -.05em;
}

.sr-process-card__divider {
  width: 1px;
  height: 44px;
  background: #edd9cc;
}

.sr-process-card h3 {
  margin: 0;
  color: var(--sr-text);
  font-size: clamp(26px, 2.3vw, 38px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.sr-process-card__body > p {
  margin: 24px 0 0;
  color: var(--sr-muted);
  font-size: 16px;
  line-height: 1.65;
}

.sr-process-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0 !important;
  padding: 22px 0 0 !important;
  border-top: 1px solid var(--sr-border);
  list-style: none;
}

.sr-process-card li {
  position: relative;
  padding-left: 18px;
  color: #202020;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.sr-process-card li::before {
  content: "";
  position: absolute;
  top: .52em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sr-orange);
}

/* ---------- Shared visual details ---------- */
.sr-window-dots {
  display: flex;
  gap: 5px;
}

.sr-window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d6cec7;
}

.sr-window-dots--dark i:nth-child(1) { background: #ff6500; }
.sr-window-dots--dark i:nth-child(2) { background: #d2a000; }
.sr-window-dots--dark i:nth-child(3) { background: #41934b; }

.sr-dot-pattern {
  position: absolute;
  inset: 0;
  opacity: .38;
  background-image: radial-gradient(rgba(255, 101, 0, .28) 1.4px, transparent 1.4px);
  background-size: 14px 14px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, transparent 52%, #000 82%, transparent 100%);
}

.sr-floating-icon {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(54, 33, 18, .15);
}

.sr-floating-icon svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Research visual ---------- */
.sr-research-window {
  position: relative;
  z-index: 2;
  width: min(70%, 360px);
  padding: 18px 22px 14px;
  border: 1px solid #ece3db;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 38px rgba(62, 40, 23, .10);
  animation: srFloatWindow 7s ease-in-out infinite;
}

.sr-research-line {
  height: 7px;
  margin-top: 16px;
  border-radius: 999px;
  background: #ddd5ce;
}

.sr-research-line--one { width: 56%; }
.sr-research-line--two { width: 34%; margin-top: 8px; }

.sr-research-chart {
  width: 100%;
  margin-top: 24px;
  overflow: visible;
}

.sr-research-chart__fill {
  fill: url(#srResearchFill);
  opacity: 0;
  animation: srFadeArea 7s ease-in-out infinite;
}

.sr-research-chart__line {
  fill: none;
  stroke: var(--sr-orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: srDrawLine 7s ease-in-out infinite;
}

.sr-mini-pie {
  position: absolute;
  z-index: 3;
  left: 12%;
  bottom: 25%;
  width: 76px;
  aspect-ratio: 1;
  border: 12px solid #fff;
  border-radius: 18px;
  background: conic-gradient(#ff8c3a 0 26%, #222 26% 58%, #8b8b8b 58% 77%, #f2d4c1 77% 100%);
  box-shadow: 0 12px 28px rgba(62, 40, 23, .12);
  animation: srFloatSmall 6.5s ease-in-out infinite reverse;
}

.sr-floating-icon--orange {
  top: 14%;
  right: 14%;
  width: 62px;
  height: 62px;
  color: #fff;
  background: var(--sr-orange);
  animation: srFloatSmall 6s ease-in-out infinite;
}

/* ---------- Design visual ---------- */
.sr-design-sheet {
  position: absolute;
  border: 1px solid #ece3db;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 38px rgba(62, 40, 23, .10);
}

.sr-design-sheet--back {
  width: 48%;
  height: 46%;
  left: 18%;
  top: 28%;
  transform: rotate(-7deg);
  animation: srDesignBack 7.5s ease-in-out infinite;
}

.sr-design-sheet--front {
  z-index: 2;
  width: 54%;
  height: 54%;
  right: 14%;
  top: 18%;
  padding: 16px;
  animation: srDesignFront 7s ease-in-out infinite;
}

.sr-design-image {
  width: 52%;
  height: 74px;
  margin-top: 20px;
  border-radius: 8px;
  background: #eee9e4;
}

.sr-design-copy {
  position: absolute;
  right: 16px;
  top: 55px;
  display: grid;
  gap: 8px;
  width: 34%;
}

.sr-design-copy i {
  height: 7px;
  border-radius: 999px;
  background: #ddd6cf;
}

.sr-design-photo,
.sr-design-type {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(54, 33, 18, .14);
}

.sr-design-photo {
  right: 20%;
  top: 32%;
  width: 66px;
  height: 66px;
  color: #fff;
  background: var(--sr-orange);
  animation: srFloatSmall 6.5s ease-in-out infinite;
}

.sr-design-photo svg {
  width: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-design-type {
  right: 10%;
  bottom: 18%;
  width: 62px;
  height: 62px;
  color: #313131;
  background: #fff;
  font-family: Georgia, serif;
  font-size: 36px;
  animation: srFloatSmall 7.2s ease-in-out infinite reverse;
}

/* ---------- Build visual ---------- */
.sr-process-card__visual--build {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 101, 0, .08), transparent 42%),
    #fdf8f4;
}

.sr-code-editor {
  position: relative;
  width: min(72%, 390px);
  min-height: 210px;
  padding: 18px;
  border: 1px solid #303030;
  border-radius: 16px;
  background: linear-gradient(145deg, #242424, #111);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .28);
  animation: srFloatWindow 7.3s ease-in-out infinite;
}

.sr-code-sidebar {
  position: absolute;
  top: 48px;
  left: 16px;
  display: grid;
  gap: 10px;
}

.sr-code-sidebar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #474747;
}

.sr-code-lines {
  display: grid;
  gap: 13px;
  margin: 44px 20px 0 44px;
}

.sr-code-lines i {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6500 0 28%, #4d4d4d 28% 100%);
  animation: srCodePulse 4.8s ease-in-out infinite;
}

.sr-code-lines i:nth-child(2) { width: 72%; animation-delay: .3s; }
.sr-code-lines i:nth-child(3) { width: 84%; animation-delay: .6s; }
.sr-code-lines i:nth-child(4) { width: 58%; animation-delay: .9s; }
.sr-code-lines i:nth-child(5) { width: 78%; animation-delay: 1.2s; }
.sr-code-lines i:nth-child(6) { width: 48%; animation-delay: 1.5s; }

.sr-floating-icon--code {
  left: 10%;
  bottom: 20%;
  width: 62px;
  height: 62px;
  color: #fff;
  background: var(--sr-orange);
  font-size: 20px;
  font-weight: 800;
  animation: srFloatSmall 6s ease-in-out infinite;
}

.sr-floating-icon--bolt {
  right: 10%;
  bottom: 15%;
  width: 62px;
  height: 62px;
  color: var(--sr-orange);
  background: #fff;
  font-size: 34px;
  animation: srFloatSmall 6.8s ease-in-out infinite reverse;
}

/* ---------- Growth visual ---------- */
.sr-growth-dashboard {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 36px;
  width: min(72%, 390px);
  padding: 30px;
  border: 1px solid #ece3db;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 38px rgba(62, 40, 23, .10);
  animation: srFloatWindow 7.4s ease-in-out infinite;
}

.sr-growth-ring {
  position: relative;
  width: 170px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--sr-orange) 0 76%, #f6d7c4 76% 100%);
  animation: srRingBreathe 6.8s ease-in-out infinite;
}

.sr-growth-ring::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: #fff;
}

.sr-growth-ring__inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  text-align: center;
}

.sr-growth-ring strong {
  color: #111;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.04em;
}

.sr-growth-ring span {
  margin-top: 7px;
  color: #6f6f6f;
  font-size: 11px;
}

.sr-growth-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 120px;
}

.sr-growth-bars i {
  width: 18px;
  border-radius: 5px 5px 0 0;
  background: #f4c7aa;
  transform-origin: bottom;
  animation: srBarRise 4.8s ease-in-out infinite;
}

.sr-growth-bars i:nth-child(1) { height: 32%; }
.sr-growth-bars i:nth-child(2) { height: 48%; animation-delay: .18s; }
.sr-growth-bars i:nth-child(3) { height: 64%; animation-delay: .36s; }
.sr-growth-bars i:nth-child(4) { height: 82%; animation-delay: .54s; }
.sr-growth-bars i:nth-child(5) { height: 100%; animation-delay: .72s; background: var(--sr-orange); }

.sr-floating-icon--trend {
  right: 12%;
  top: 14%;
  width: 62px;
  height: 62px;
  color: #fff;
  background: #111;
  animation: srFloatSmall 6.4s ease-in-out infinite;
}

/* ---------- Animations ---------- */
@keyframes srFloatWindow {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(-.7deg); }
}

@keyframes srFloatSmall {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(3deg); }
}

@keyframes srDrawLine {
  0%, 12% { stroke-dashoffset: 420; }
  45%, 82% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -420; }
}

@keyframes srFadeArea {
  0%, 18% { opacity: 0; }
  42%, 80% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes srDesignBack {
  0%, 100% { transform: translateY(0) rotate(-7deg); }
  50% { transform: translateY(-8px) rotate(-4deg); }
}

@keyframes srDesignFront {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes srCodePulse {
  0%, 100% { opacity: .48; transform: scaleX(.94); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes srRingBreathe {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.025); }
}

@keyframes srBarRise {
  0%, 100% { transform: scaleY(.78); opacity: .68; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sr-process-grid__cards {
    grid-template-columns: 1fr;
  }

  .sr-process-card__visual {
    min-height: 300px;
  }
}

@media (max-width: 600px) {
  .sr-process-grid {
    padding: 74px 0;
  }

  .sr-process-grid .sr-container {
    width: min(100% - 24px, 1240px);
  }

  .sr-process-grid__intro h2 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .sr-process-card {
    border-radius: 20px;
  }

  .sr-process-card__visual {
    min-height: 245px;
  }

  .sr-process-card__body {
    padding: 26px 24px 30px;
  }

  .sr-process-card__title-row {
    gap: 13px;
  }

  .sr-process-card__number {
    font-size: 36px;
  }

  .sr-process-card__divider {
    height: 38px;
  }

  .sr-process-card h3 {
    font-size: 25px;
  }

  .sr-mini-pie,
  .sr-floating-icon,
  .sr-design-type,
  .sr-design-photo {
    transform: scale(.82);
  }

  .sr-growth-dashboard {
    gap: 20px;
    width: 82%;
    padding: 20px;
  }

  .sr-growth-ring {
    width: 126px;
  }

  .sr-growth-ring strong {
    font-size: 27px;
  }

  .sr-growth-bars {
    gap: 5px;
    height: 88px;
  }

  .sr-growth-bars i {
    width: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sr-process-grid *,
  .sr-process-grid *::before,
  .sr-process-grid *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}