/* ------------------------------------------------------------------------- */
/* UI-GEN-004.03 — 4.8 Process Section                                      */
/* Isolated section stylesheet. Do not move into components.css.             */
/* ------------------------------------------------------------------------- */

.brevanor-process-section.alignfull{
  width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}

.brevanor-process-section{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  padding-block:80px;
  color:#2D3436;
}

.brevanor-process-section--white{
  background:#FFFFFF;
}

.brevanor-process-section--stone{
  background:#E8E6E3;
}

.brevanor-process-section--navy{
  background:#0F3D63;
  color:#FFFFFF;
}

.brevanor-process-section--navy .brevanor-process-section__step-label{
  color:#FFFFFF;
}

.brevanor-process-section--navy .brevanor-process-section__step-description{
  color:#FFFFFF;
}

.brevanor-process-section__inner{
  width:min(100%,960px);
  min-width:0;
  margin-inline:auto;
  padding-inline:var(--brevanor-shell-inset);
  box-sizing:border-box;
}

.brevanor-process-section .brevanor-content-heading-stack{
  width:100%;
  margin:0;
}

.brevanor-process-section .brevanor-content-heading-stack__content{
  width:100%;
  margin-inline:0;
}

.brevanor-process-section .brevanor-content-primitives__heading,
.brevanor-process-section .brevanor-content-primitives__subheading{
  margin-right:0;
}

.brevanor-process-section .brevanor-content-heading-stack--center .brevanor-content-primitives__heading,
.brevanor-process-section .brevanor-content-heading-stack--center .brevanor-content-primitives__subheading{
  margin-left:auto !important;
  margin-right:auto !important;
  text-align:center;
}

.brevanor-process-section .brevanor-content-heading-stack--left .brevanor-content-primitives__heading,
.brevanor-process-section .brevanor-content-heading-stack--left .brevanor-content-primitives__subheading{
  margin-left:0;
}

.brevanor-process-section .brevanor-content-primitives__heading{
  max-width:680px;
}

.brevanor-process-section .brevanor-content-primitives__subheading{
  max-width:52ch;
}

.brevanor-process-section__steps{
  width:100%;
  margin:64px 0 0;
  padding:0;
  list-style:none;
}

.brevanor-process-section__step{
  min-width:0;
}

 .brevanor-process-section__step-number{
  flex:0 0 auto;
  margin:0;
  color:#C8A25A;
  font-family:var(--wp--preset--font-family--manrope,"Manrope",sans-serif);
  font-size:2.25rem;
  font-weight:700;
  line-height:1;
  letter-spacing:-0.02em;
}

.brevanor-process-section__step-label{
  margin:0;
  color:#0F3D63;
  font-family:var(--wp--preset--font-family--manrope,"Manrope",sans-serif);
  font-size:24px;
  font-weight:700;
  line-height:1.15;
}

.brevanor-process-section__step-description{
  margin:8px 0 0;
  color:#2D3436;
  font-family:var(--wp--preset--font-family--source-sans-3,"Source Sans 3",sans-serif);
  font-size:16px;
  line-height:1.5;
  max-width:52ch;
}

/* Numbered variant: vertical at every viewport. */
.brevanor-process-section--numbered .brevanor-process-section__steps{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.brevanor-process-section--numbered .brevanor-process-section__step{
  display:flex;
  gap:24px;
  align-items:flex-start;
  padding:0 0 24px;
  border-bottom:1px solid rgba(200,162,90,.55);
}

.brevanor-process-section--numbered .brevanor-process-section__step:last-child{
  padding-bottom:0;
  border-bottom:0;
}

.brevanor-process-section--numbered .brevanor-process-section__step-content{
  min-width:0;
}

/* Connected variant: stacked on mobile; horizontal from the approved 768px threshold. */
.brevanor-process-section--connected .brevanor-process-section__steps{
  display:flex;
  flex-direction:column;
}

.brevanor-process-section--connected .brevanor-process-section__step{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:16px;
  min-width:0;
  padding:32px 16px;
  border-bottom:1px solid #C8A25A;
}

.brevanor-process-section--connected .brevanor-process-section__step:last-child{
  border-bottom:0;
}

@media (min-width:768px){
  /* --brevanor-process-inline override removed; connected-layout row direction retained */

  .brevanor-process-section--connected .brevanor-process-section__steps{
    flex-direction:row;
  }

  .brevanor-process-section--connected .brevanor-process-section__step{
    flex:1 1 0;
    padding:16px 32px;
    border-bottom:0;
    border-left:1px solid #C8A25A;
  }

  .brevanor-process-section--connected .brevanor-process-section__step:first-child{
    border-left:0;
    padding-left:0;
  }

  .brevanor-process-section--connected .brevanor-process-section__step:last-child{
    padding-right:0;
  }
}

@media (min-width:1024px){
  .brevanor-process-section{
    padding-block:96px;
  }
}

@media (min-width:1440px){
  .brevanor-process-section{
    padding-block:96px;
  }
}

@media (max-width:767px){
  .brevanor-process-section{
    padding-block:64px;
  }

  .brevanor-process-section__steps{
    margin-top:48px;
  }
}

@media (max-width:599px){
  .brevanor-process-section{
    padding-block:48px;
  }

  .brevanor-process-section__steps{
    margin-top:40px;
  }
}

@media (max-width:399px){
  .brevanor-process-section{
    padding-block:40px;
  }

  /* .brevanor-process-section__inner padding-inline:20px removed — same reasoning as 4.1 §3.1 */

  .brevanor-process-section--numbered .brevanor-process-section__step{
    gap:16px;
  }

  .brevanor-process-section__step-number{
    font-size:2rem;
  }
}

@media (prefers-reduced-motion:reduce){
  .brevanor-process-section,
  .brevanor-process-section *{
    scroll-behavior:auto;
  }
}


/* Section alignment follows the Heading Stack selection.
 * The heading stack is the single alignment control for the complete section.
 */
.brevanor-process-section:has(.brevanor-content-heading-stack--left) .brevanor-process-section__step-number,
.brevanor-process-section:has(.brevanor-content-heading-stack--left) .brevanor-process-section__step-label,
.brevanor-process-section:has(.brevanor-content-heading-stack--left) .brevanor-process-section__step-description{
  text-align:left;
}

.brevanor-process-section:has(.brevanor-content-heading-stack--center) .brevanor-process-section__step-number,
.brevanor-process-section:has(.brevanor-content-heading-stack--center) .brevanor-process-section__step-label,
.brevanor-process-section:has(.brevanor-content-heading-stack--center) .brevanor-process-section__step-description{
  text-align:center;
}

.brevanor-process-section:has(.brevanor-content-heading-stack--center) .brevanor-process-section__step-content{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.brevanor-process-section:has(.brevanor-content-heading-stack--center) .brevanor-process-section__step-number{
  width:auto;
}

.brevanor-process-section:has(.brevanor-content-heading-stack--left) .brevanor-process-section__step-content{
  align-items:flex-start;
}

.brevanor-process-section:has(.brevanor-content-heading-stack--left) .brevanor-process-section__step-number{
  width:auto;
}


/* Match left-aligned heading/subheading to the left edge of the eyebrow
 * container. The alignment is unchanged whether the BREVANOR symbol is shown
 * or hidden, matching the Figma section composition.
 */
.brevanor-process-section .brevanor-content-heading-stack--left.brevanor-content-heading-stack--has-symbol .brevanor-content-primitives__heading,
.brevanor-process-section .brevanor-content-heading-stack--left.brevanor-content-heading-stack--has-symbol .brevanor-content-primitives__subheading{
  margin-left:0 !important;
  margin-right:0 !important;
}

.brevanor-process-section .brevanor-content-heading-stack--left:not(.brevanor-content-heading-stack--has-symbol) .brevanor-content-primitives__heading,
.brevanor-process-section .brevanor-content-heading-stack--left:not(.brevanor-content-heading-stack--has-symbol) .brevanor-content-primitives__subheading{
  margin-left:0 !important;
  margin-right:0 !important;
}

.brevanor-process-section .brevanor-content-heading-stack--center .brevanor-content-primitives__heading,
.brevanor-process-section .brevanor-content-heading-stack--center .brevanor-content-primitives__subheading{
  margin-left:auto !important;
  margin-right:auto !important;
  text-align:center;
}


/* The selected Heading Stack alignment governs the complete step composition.
 * For the numbered layout, the number and its content move together as one
 * aligned unit; for the connected layout, each step follows the same rule.
 */
.brevanor-process-section:has(.brevanor-content-heading-stack--left) .brevanor-process-section__step{
  justify-content:flex-start;
}

.brevanor-process-section:has(.brevanor-content-heading-stack--left) .brevanor-process-section__step-content{
  align-items:flex-start;
}

.brevanor-process-section:has(.brevanor-content-heading-stack--center) .brevanor-process-section__step{
  justify-content:center;
}

.brevanor-process-section:has(.brevanor-content-heading-stack--center) .brevanor-process-section__step-content{
  align-items:center;
}

.brevanor-process-section:has(.brevanor-content-heading-stack--center) .brevanor-process-section__step-content{
  text-align:center;
}

.brevanor-process-section:has(.brevanor-content-heading-stack--left) .brevanor-process-section__step-content{
  text-align:left;
}

.brevanor-process-section:has(.brevanor-content-heading-stack--center) .brevanor-process-section__step-number{
  text-align:center;
}

/* Connected desktop cells remain evenly distributed; their internal content
 * follows the same section alignment rule. */
@media (min-width:768px){
  .brevanor-process-section--connected:has(.brevanor-content-heading-stack--left) .brevanor-process-section__step{
    justify-content:flex-start;
    align-items:flex-start;
  }

  .brevanor-process-section--connected:has(.brevanor-content-heading-stack--center) .brevanor-process-section__step{
    justify-content:center;
    align-items:center;
  }
}


/* Numbered layout: each step remains full-width so the divider spans the
 * section. When Centre is selected, the number + content are centred together
 * inside that full-width row rather than the row itself shrinking to content.
 */
.brevanor-process-section--numbered .brevanor-process-section__steps{
  align-items:stretch;
}

.brevanor-process-section--numbered .brevanor-process-section__step{
  width:100%;
  box-sizing:border-box;
}

.brevanor-process-section--numbered:has(.brevanor-content-heading-stack--center) .brevanor-process-section__step{
  justify-content:center;
}

.brevanor-process-section--numbered:has(.brevanor-content-heading-stack--center) .brevanor-process-section__step-content{
  width:auto;
  max-width:52ch;
}
