/* ==========================================================================
   SEIB CONSTRUCTION — OUR PROCESS PAGE
   Styles unique to process.html only.
   Shared tokens → global.css | Shared components → components.css
   RULE: Never hardcode brand colors — always use CSS custom properties.
   ========================================================================== */


/* --------------------------------------------------------------------------
   SCROLL REVEAL
   -------------------------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.30s; }
.delay-4 { transition-delay: 0.40s; }
.delay-5 { transition-delay: 0.50s; }

.section-eyebrow--light { color: var(--copper-light); }


/* --------------------------------------------------------------------------
   HERO ENTRANCE ANIMATION
   -------------------------------------------------------------------------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero-animate        { animation: heroFadeUp 0.7s ease forwards; }
.hero-animate--delay { animation-delay: 0.2s; opacity: 0; }


/* --------------------------------------------------------------------------
   §01 HERO
   -------------------------------------------------------------------------- */
.proc-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image: url('../images/home-hero-banner.jpeg');
  background-size: cover;
  background-position: center top;
  padding-top: 72px;
  overflow: hidden;
}

.proc-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 16, 30, 0.97) 0%,
    rgba(15, 27, 51, 0.75) 50%,
    rgba(15, 27, 51, 0.35) 100%
  );
  pointer-events: none;
}

.proc-hero-content {
  position: relative;
  z-index: 1;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: var(--space-8);
  max-width: 760px;
}

.proc-hero-content .section-eyebrow {
  color: var(--copper-light);
}

.proc-hero-headline {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: var(--space-3);
  margin-bottom: var(--space-5);
}

.proc-hero-sub {
  color: rgba(255, 255, 255, 0.70);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 0;
}

/* Step progress bar in hero */
.proc-hero-steps {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: var(--space-7) 0 clamp(40px, 6vw, 64px);
  overflow-x: auto;
  scrollbar-width: none;
}
.proc-hero-steps::-webkit-scrollbar { display: none; }

.proc-hero-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 100px;
  position: relative;
  z-index: 1;
  text-decoration: none;
  cursor: pointer;
}

/* Clickable step → highlights and jumps to its section */
.proc-hero-step:hover .proc-hero-step-icon,
.proc-hero-step:focus-visible .proc-hero-step-icon {
  background-color: var(--copper);
  border-color: var(--copper);
  color: #fff;
}
.proc-hero-step:hover .proc-hero-step-label,
.proc-hero-step:focus-visible .proc-hero-step-label {
  color: #fff;
}

/* Smooth scroll + offset so the target section clears any sticky header */
html { scroll-behavior: smooth; }
.proc-step-section { scroll-margin-top: 90px; }

/* Connector line between steps */
.proc-hero-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% + 24px);
  right: calc(-50% + 24px);
  height: 1px;
  background: linear-gradient(90deg,
    rgba(184, 115, 51, 0.5),
    rgba(184, 115, 51, 0.2)
  );
}

.proc-hero-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(184, 115, 51, 0.15);
  border: 1px solid rgba(184, 115, 51, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--copper-light);
  margin-bottom: var(--space-3);
  transition: background-color var(--transition-base);
}

.proc-hero-step-num {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 4px;
}

.proc-hero-step-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.3;
}


/* --------------------------------------------------------------------------
   STEP SECTIONS (§02–§06)
   -------------------------------------------------------------------------- */
.proc-step-section {
  padding-block: clamp(64px, 8vw, 96px);
}

.proc-step-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 88px);
  align-items: center;
}

/* Reverse layout for even steps */
.proc-step-section--reverse .proc-step-inner {
  direction: rtl;
}
.proc-step-section--reverse .proc-step-inner > * {
  direction: ltr;
}

/* Step number badge */
.proc-step-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.proc-step-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  color: var(--copper-dim);
  line-height: 1;
  letter-spacing: -2px;
  /* Outlined number effect */
  -webkit-text-stroke: 2px var(--copper);
  color: transparent;
}

.proc-step-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--copper-dim);
  border: 1px solid rgba(184, 115, 51, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--copper);
  flex-shrink: 0;
}

.proc-step-content .section-eyebrow {
  display: block;
  margin-bottom: var(--space-3);
}

.proc-step-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: var(--space-5);
}

.proc-step-desc {
  font-size: var(--fs-body);
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

/* Detail bullet list */
.proc-step-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.proc-step-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
}

.proc-step-detail-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--copper-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--copper);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Timeline callout */
.proc-step-timeline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background-color: var(--off-white);
  border: 1px solid var(--cream);
  border-left: 3px solid var(--copper);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-3) var(--space-5);
}

.proc-step-timeline-icon {
  font-size: 14px;
  color: var(--copper);
  flex-shrink: 0;
}

.proc-step-timeline-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--navy);
  letter-spacing: 0.5px;
}

/* Step photo */
.proc-step-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4;
  box-shadow: var(--shadow-md);
}

.proc-step-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 860px) {
  .proc-step-inner {
    grid-template-columns: 1fr;
  }
  .proc-step-section--reverse .proc-step-inner {
    direction: ltr;
  }
  .proc-step-photo {
    aspect-ratio: 16 / 9;
    max-height: 300px;
  }
}


/* --------------------------------------------------------------------------
   PROCESS DIVIDER
   -------------------------------------------------------------------------- */
.proc-divider {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding-block: var(--space-2);
}

.proc-divider-line {
  flex: 1;
  height: 1px;
  background-color: var(--cream);
}

.proc-divider-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--white);
  border: 1px solid var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--copper);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}


/* --------------------------------------------------------------------------
   §07 CTA
   -------------------------------------------------------------------------- */
.proc-cta-inner {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  /* No padding-block: parent .section already provides --section-pad-y top &
     bottom; the extra padding here doubled it into empty navy bands. */
}

.proc-cta-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--copper-light);
  display: block;
  margin-bottom: var(--space-4);
  opacity: 0.85;
}

.proc-cta-headline {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: var(--space-5);
}

.proc-cta-sub {
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--fs-body);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.proc-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.proc-cta-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.30);
}

.proc-cta-note a {
  color: var(--copper-light);
  text-decoration: none;
  transition: color var(--transition-base);
}

.proc-cta-note a:hover {
  color: var(--white);
}
