/* ==========================================================================
   UNTERRO - PROCESS STICKY SPLIT-SCROLL COMPONENT (MOBILE-FIRST)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base Section Container (.process-section)
   -------------------------------------------------------------------------- */
.process-section {
  position: relative;
  background-color: var(--color-bg-primary);
  padding: var(--space-xl) 0 var(--space-xxl);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* --------------------------------------------------------------------------
   2. Title Row
   -------------------------------------------------------------------------- */
.process-section__header {
  margin-bottom: 18px;
  padding: 0;
}

.process-section__title {
  font-family: var(--font-family-sans);
  font-size: clamp(1.375rem, 1.25rem + 0.6vw, 1.875rem);
  font-weight: var(--font-weight-regular);
  line-height: 1.35;
  color: var(--color-text-primary);
  text-transform: uppercase;
  margin: 0;
  padding-left: var(--space-sm);
  border-left: 8px solid #AD622F; /* Left border copper bar (thickened to 8px, color #AD622F) */
}

/* --------------------------------------------------------------------------
   3. Split Grid System (Mobile Default)
   -------------------------------------------------------------------------- */
.process-section__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Right Column: Sticky image wrapper on Mobile */
.process-section__right {
  position: sticky;
  top: 15px; /* Tight sticky positioning at top of viewport on mobile */
  height: 35vh; /* Mobile fixed viewport height */
  width: 100%;
  z-index: 10;
  margin-bottom: 10px;
  order: -1; /* Place image on top of scroll text on mobile */
}

.process-section__slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.18), 0 4px 12px -2px rgba(0, 0, 0, 0.10);
}

.process-section__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity;
}

.process-section__slide.is-active {
  opacity: 1;
  z-index: 2;
}

.process-section__image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(1.05);
  will-change: transform;
}

.process-section__slide.is-active .process-section__image {
  transform: scale(1); /* Smooth subtle zoom-in during crossfade */
}

/* Left Column: Text panels */
.process-section__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.process-section__item {
  width: 100%;
}

.process-section__card {
  background-color: #ffffff;
  border: 1px solid #BBBBBB; /* 1px #BBBBBB card border */
  border-radius: 12px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   4. Card Typographic Details & Button
   -------------------------------------------------------------------------- */

/* Number Label: "01 --" */
.process-section__card-num {
  font-family: var(--font-family-sans);
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  display: inline-flex;
  align-items: center;
}

.process-section__card-num::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background-color: var(--color-accent);
  margin-left: 10px;
  vertical-align: middle;
}

/* Card Heading (Matches Our visual tools / Crafted Around You font) */
.process-section__card-title {
  font-family: var(--font-family-sans);
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.375rem);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-md) 0;
  position: relative;
  display: inline-block;
  line-height: 1.25;
}

.process-section__card-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 1.5px;
  background-color: var(--color-accent);
}

.process-section__card-desc {
  font-family: var(--font-family-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: var(--space-md) 0 var(--space-lg) 0;
  max-width: 460px;
}

/* Outline Capsule Button */
.process-section__card-btn {
  padding: 10px 24px; /* Slightly refined padding */
  background-color: transparent;
  border: 1px solid var(--color-accent);
  border-radius: 8px; /* Soft rectangular corners matching the global 8px border radius */
  color: var(--color-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  gap: 12px;
}

.process-section__card-btn span {
  font-family: var(--font-family-sans);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
}

.process-section__arrow {
  font-size: 14px;
  transition: transform var(--transition-fast);
  line-height: 1;
}

.process-section__card-btn:hover {
  background-color: var(--color-accent);
  color: #ffffff;
}

.process-section__card-btn:hover .process-section__arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. Responsive Tablet & Desktop Adjustments (Symmetrical Viewport Height)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .process-section {
    padding: var(--space-huge) 0 var(--space-xxl);
  }
}

@media (min-width: 1024px) {
  .process-section__header {
    margin-top: 48px;
    margin-bottom: 22px;
    padding: 0;
    width: fit-content;
    max-width: 60%;
  }

  .process-section__title {
    font-size: 3rem; /* Enlarged to 3rem matching design request */
    line-height: 1.25;
  }

  /* Grid splits columns on desktop */
  .process-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Exactly 50-50 symmetrical split columns */
    gap: 12px; /* Tightened gap between columns */
    align-items: start;
  }

  /* Right Column: Sticky slideshow container matched in height */
  .process-section__right {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 6px 0;
    box-sizing: border-box;
    margin-bottom: 0;
    order: 0; /* Natural order (text left, image right) */
  }

  /* Left Column: Scroll cards scroll space */
  .process-section__left {
    gap: 0; /* Zero gaps, height created by scroll paddings */
  }

  .process-section__item {
    height: 100vh; /* Controlled scroll depth matching viewport exactly */
    display: flex;
    align-items: stretch; /* Stretch children to full height of parent inner area */
    padding: 6px 0; /* Reduced padding to minimize the grey gap between consecutive cards to 12px */
    box-sizing: border-box;
  }

  .process-section__card {
    width: 100%;
    height: 100%; /* Stretches to fill parent item content area exactly */
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (min-width: 1440px) {
  .process-section__title {
    font-size: 3.75rem; /* Proportional scaling on large screens */
  }

  .process-section__card-title {
    font-size: 3rem; /* Scale card title on large desktops */
  }

  .process-section__card-desc {
    font-size: 16px; /* Larger description text */
    max-width: 600px;
  }

  .process-section__card-num {
    font-size: 16px;
  }

  .process-section__card-btn {
    padding: 12px 30px;
  }

  .process-section__card-btn span {
    font-size: 12px;
  }
}

@media (min-width: 1920px) {
  .process-section__title {
    font-size: 3.5rem; /* Maximum scaling on ultra-wide screens */
  }

  .process-section__card-title {
    font-size: 3.5rem; /* Scale card title on ultra-wide screens */
  }

  .process-section__card-desc {
    font-size: 18px; /* Extra-large description text */
    max-width: 700px;
  }

  .process-section__card-num {
    font-size: 18px;
  }

  .process-section__card-btn {
    padding: 14px 36px;
  }

  .process-section__card-btn span {
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   6. Mobile Layout overrides (max-width: 1023px)
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  /* Mask to cover text scrolling up behind the top 15px sticky gap */
  .process-section__right::before {
    content: "";
    position: absolute;
    top: -16px;
    left: -20px;
    right: -20px;
    height: 16px;
    background-color: var(--color-bg-primary); /* Match page background */
    z-index: 12;
    pointer-events: none;
  }

  .process-section__card {
    border: 0.5px solid rgba(187, 187, 187, 0.7); /* Thinner refined border on mobile */
  }
}

