/* =============== Execution Process Module =============== */

.process-section {
  background: #ffffff;
  padding: 80px;
  container-type: inline-size;
}

/* Shared width */
.process-header, .process-grid {
  width: 100%;
  max-width: 1376px;
  margin: 0 auto;
  padding: 0;
}

/* Header */
.process-header { 
  text-align: center; 
  margin-bottom: 56px; 
}

.process-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 20px 6px;
  border-radius: 56px;
  border: 1px solid #2665e2;
  margin-bottom: 40px;
  font-family: Roboto, sans-serif;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .08em;
  transition: all 0.3s ease;
  background: transparent;
  color: #2665e2;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.process-badge:hover {
  background-color: rgba(38, 101, 226, 0.15);
  filter: brightness(1.3);
  box-shadow: 0 4px 12px rgba(38, 101, 226, 0.25), 0 0 12px rgba(38, 101, 226, 0.15);
  cursor: default;
}

.process-badge__label {
  color: #2665e2;
  font: 700 18px/1 Roboto, sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.process-title {
  margin: 0 0 16px; 
  color: #0F172A;
  font: 700 clamp(32px, 4vw, 56px)/120% Roboto, sans-serif;
  letter-spacing: -.015em;
}

.process-subtitle {
  max-width: 800px; 
  margin: 0 auto;
}

.process-subtitle p {
  margin: 0;
  color: rgba(15, 23, 42, 0.7);
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
}

/* Title accent (blue -> purple) */
.process-accent {
  background: linear-gradient(90deg, #2665e2 0%, #c26de6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.process-accent--flip {
  background: linear-gradient(90deg, #c26de6 0%, #2665e2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Grid of cards ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@container (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container (max-width: 680px) {
  .process-grid { grid-template-columns: 1fr; }
}

@supports not (container-type: inline-size) {
  @media (max-width: 1024px) { .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 680px)  { .process-grid { grid-template-columns: 1fr; } }
}

/* Dynamic Image & Gradient Card */
.process-card {
  position: relative;
  border-radius: 12px;
  padding: 40px 32px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  
  /* FIX: Always use a 2px border to prevent layout shift */
  border: 2px solid transparent;
  background: linear-gradient(#12141C, #12141C) padding-box, 
              linear-gradient(0deg, #64748B, #64748B) border-box;

  /* Ensure smooth hardware-accelerated transitions */
  backface-visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.4s ease;
}

.process-card:hover,
.process-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  
  /* FIX: Swap to color gradient on hover while keeping same 2px border thickness */
  background: linear-gradient(#12141C, #12141C) padding-box, 
              linear-gradient(90deg, #c26de6 0%, #2665e2 100%) border-box;
}

/* Card Background Image with fade to black */
.process-card__bg {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
  /* Fades out the bottom of the image so the text is legible */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0) 80%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0) 80%);
}

/* Card Content Layering */
.process-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* Number */
.process-card-number {
  font-size: 56px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1;
  font-family: Roboto, sans-serif;
  letter-spacing: -0.02em;
}

/* Title */
.process-card-title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  font-family: Roboto, sans-serif;
}

/* Description */
.process-card-desc {
  margin: 0; 
  color: rgba(255, 255, 255, 0.85); 
  font-size: 15px; 
  line-height: 1.6;
  font-family: Roboto, sans-serif;
}

.process-card-desc p {
  margin: 0;
}

/* Responsive padding tweaks */
@media (max-width: 1024px) {
  .process-section { padding: 60px 40px; }
  .process-card { min-height: 440px; }
}

@media (max-width: 768px)  {
  .process-section { padding: 40px 20px; }
  .process-card { min-height: 400px; padding: 32px 24px; }
  .process-badge { padding: 6px 14px 4px; border-radius: 40px; margin-bottom: 24px; }
  .process-badge__label { font-size: 14px; }
  .process-subtitle p { font-size: 16px; }
  .process-card-number { font-size: 48px; }
  .process-card-title { font-size: 20px; }
}

/* ===== Optional CTA Button (Disabled by default) ===== */
.process-btn-wrapper { margin-top: 48px; text-align: center; }

.process-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 40px;
  border-radius: 8px;
  background-image: linear-gradient(90deg, #2665e2 0%, #c26de6 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,0.35);
  transition: box-shadow .2s ease;
  backface-visibility: hidden;
  transform: translateZ(0);
  overflow: hidden;
  will-change: transform, box-shadow;
  transform-origin: center center;
}

.process-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(90deg, #c26de6 0%, #2665e2 100%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  z-index: 0;
}

.process-cta:hover::after { opacity: 1; }
.process-cta__label { position: relative; z-index: 1; white-space: nowrap; }
.process-cta, .process-cta:hover { opacity: 1 !important; }

@media (prefers-reduced-motion: reduce) {
  .process-card:hover,
  .process-card:focus-visible { transform: none; }
}