/* ==========================================================================
   SWARAJ MHE INDIA — CINEMATIC PRECISION WORKFLOW SECTION
   02 / HOW WE WORK — THE WORK BEHIND EVERY MOVE.
   ========================================================================== */

.workflow-section {
  position: relative;
  background: #121314;
  color: #ffffff;
  padding-block: 105px 115px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Background Watermark & Subtle Industrial Stripe */
.workflow-watermark {
  position: absolute;
  top: -20px;
  right: 2%;
  font-family: var(--display, 'Barlow Condensed', sans-serif);
  font-size: clamp(160px, 22vw, 320px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.05);
  color: transparent;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.workflow-bg-stripe {
  position: absolute;
  top: 0;
  left: 48%;
  width: 140px;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 1;
}

.workflow-container {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ==========================================================================
   HEADER ROW (Decreased H2 Heading + Right Copy)
   ========================================================================== */

.workflow-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 60px;
}

.workflow-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body, 'DM Sans', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--yellow, #ffc629);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.workflow-kicker-dash {
  width: 22px;
  height: 2.5px;
  background: var(--yellow, #ffc629);
  border-radius: 1px;
}

/* User requirement: "THE WORK BEHIND EVERY MOVE. this text size decress" */
.workflow-heading {
  font-family: var(--display, 'Barlow Condensed', sans-serif) !important;
  font-size: clamp(30px, 3.2vw, 44px) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.015em !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

.workflow-heading em {
  color: var(--yellow, #ffc629) !important;
  font-style: normal !important;
}

.workflow-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 4px;
}

.workflow-header-divider {
  width: 1.5px;
  height: 52px;
  background: rgba(255, 255, 255, 0.22);
}

.workflow-header-note {
  font-family: var(--body, 'DM Sans', sans-serif);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 1.6px;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  margin: 0;
}

/* ==========================================================================
   WORKFLOW GRID & THREE-COLUMN LAYOUT
   ========================================================================== */

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
  align-items: start;
}

.workflow-card {
  position: relative;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
}

/* Visual Top Section */
.workflow-card-top {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Angled Image Frame */
.workflow-photo-wrap {
  position: relative;
  flex: 0 0 71%;
  max-width: 71%;
  aspect-ratio: 16 / 10;
}

.workflow-card[data-step="3"] .workflow-photo-wrap {
  flex: 0 0 71%;
  max-width: 71%;
}

/* Yellow Geometric Backing Shape */
.workflow-backing-shape {
  display: none;
}

/* The Frame with the Parallelogram Clip-Path */
.workflow-photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  clip-path: polygon(14% 0%, 100% 0%, 86% 100%, 0% 100%);
  overflow: hidden;
  border-radius: 6px;
  background: #18191a;
  z-index: 2;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 24px rgba(255, 198, 41, 0.05);
  transition: box-shadow 0.5s ease;
}

.workflow-photo-frame:hover {
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.75), 0 0 35px rgba(255, 198, 41, 0.12);
}

/* Reveal Wrapper for Diagonal Mask Entrance Animation */
.workflow-photo-reveal {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  will-change: clip-path;
}

/* Photograph with Luxury Hover Depth */
.workflow-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* ==========================================================================
   PROCESS LINE, OUTLINED NUMBERS & CIRCULAR ARROWS
   ========================================================================== */

.workflow-flow-badge {
  flex: 1;
  display: flex;
  align-items: center;
  margin-left: -6px;
  z-index: 3;
}

.workflow-flow-badge-end {
  flex: 0 0 auto;
  margin-left: 8px;
}

/* Outlined Numbers 01, 02, 03 */
.workflow-num {
  font-family: var(--display, 'Barlow Condensed', sans-serif);
  font-size: clamp(40px, 3.8vw, 56px);
  font-weight: 800;
  line-height: 1;
  -webkit-text-stroke: 1.5px #cca038;
  color: transparent;
  user-select: none;
  letter-spacing: 0.02em;
  transition: color 0.35s ease, -webkit-text-stroke-color 0.35s ease, text-shadow 0.35s ease;
  flex-shrink: 0;
}

.workflow-num.is-active {
  color: var(--yellow, #ffc629);
  -webkit-text-stroke-color: var(--yellow, #ffc629);
  text-shadow: 0 0 16px rgba(255, 198, 41, 0.45);
}

/* Circular Arrow Elements */
.workflow-arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #cca038;
  background: #121314;
  color: var(--yellow, #ffc629);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 4;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

.workflow-arrow-circle svg {
  width: 15px;
  height: 15px;
  display: block;
}

.workflow-arrow-circle.is-active {
  background: var(--yellow, #ffc629);
  color: #121314;
  border-color: var(--yellow, #ffc629);
  box-shadow: 0 0 14px rgba(255, 198, 41, 0.5);
  transform: scale(1.1);
}

/* Yellow Process Line Segments */
.workflow-line-segment {
  display: flex;
  align-items: center;
  height: 2px;
}

.workflow-line-pre {
  width: 14px;
  flex-shrink: 0;
}

.workflow-line-post {
  flex: 1;
  min-width: 20px;
}

.workflow-line-segment svg {
  width: 100%;
  height: 2px;
  display: block;
  overflow: visible;
}

.workflow-stroke-line {
  stroke: #cca038;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

/* ==========================================================================
   CONTENT BLOCK BELOW IMAGE
   ========================================================================== */

.workflow-card-info {
  margin-top: 26px;
}

.workflow-step-title {
  font-family: var(--display, 'Barlow Condensed', sans-serif);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.workflow-title-bar {
  width: 38px;
  height: 3.5px;
  background: var(--yellow, #ffc629);
  border-radius: 2px;
  margin-bottom: 14px;
}

.workflow-step-desc {
  font-family: var(--body, 'DM Sans', sans-serif);
  font-size: 14.5px;
  line-height: 1.7;
  color: #a0a6a1;
  margin: 0;
  max-width: 310px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .workflow-grid {
    gap: 24px;
  }
  .workflow-photo-wrap {
    flex: 0 0 64%;
  }
  .workflow-num {
    font-size: 36px;
  }
  .workflow-arrow-circle {
    width: 24px;
    height: 24px;
  }
  .workflow-arrow-circle svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 820px) {
  .workflow-section {
    padding-block: 75px 85px;
  }
  .workflow-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 45px;
  }
  .workflow-header-right {
    padding-bottom: 0;
  }
  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .workflow-photo-wrap {
    flex: 0 0 260px;
  }
  .workflow-card[data-step="3"] .workflow-photo-wrap {
    flex: 0 0 260px;
  }
  .workflow-flow-badge {
    flex: 1;
    margin-left: 12px;
  }
  .workflow-line-post {
    display: none;
  }
}

@media (max-width: 540px) {
  .workflow-section {
    padding-block: 60px 70px;
  }
  .workflow-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .workflow-photo-wrap {
    width: 100%;
    flex: none;
    aspect-ratio: 16 / 10;
  }
  .workflow-card[data-step="3"] .workflow-photo-wrap {
    width: 100%;
    flex: none;
  }
  .workflow-flow-badge {
    margin-left: 0;
    gap: 12px;
  }
  .workflow-line-segment {
    display: none;
  }
  .workflow-step-desc {
    max-width: 100%;
  }
}

/* ==========================================================================
   REDUCED MOTION ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .workflow-card,
  .workflow-backing-shape,
  .workflow-photo-reveal,
  .workflow-photo-img,
  .workflow-num,
  .workflow-arrow-circle,
  .workflow-stroke-line {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
}
