/* ============================================================
   CAPITAL BUILD — Process Page
   ============================================================ */

/* ------------------------------------------------------------
   1. HERO
   ------------------------------------------------------------ */
.process-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(420px, 72vh, 640px);
  padding:
    calc(var(--header-height, 88px) + var(--topbar-height, 44px) + var(--space-16, 4rem))
    0
    var(--space-16, 4rem);
  background: var(--color-navy-dark, #060F1F);
  overflow: hidden;
}

.process-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.process-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.4;
  transform: scale(1.04);
}

.process-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(6, 15, 31, 0.55) 0%,
      rgba(6, 15, 31, 0.72) 45%,
      rgba(6, 15, 31, 0.94) 100%
    );
  pointer-events: none;
}

/* faint construction grid — very subtle */
.process-hero__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  pointer-events: none;
}

.process-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.process-hero__content {
  max-width: 40rem;
  text-align: left;
}

.process-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 var(--space-4, 1rem);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold, #C9A84C);
  line-height: 1;
}

.process-hero__eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.process-hero__title {
  margin: 0 0 var(--space-5, 1.25rem);
  font-family: var(--font-heading, "DM Serif Display", serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-offwhite, #F7F5F0);
}

.process-hero__text {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.65;
  color: rgba(247, 245, 240, 0.72);
}

/* ------------------------------------------------------------
   2. TIMELINE SECTION
   ------------------------------------------------------------ */
.timeline-section {
  position: relative;
  padding: var(--space-20, 5rem) 0 var(--space-24, 6rem);
  background: var(--color-offwhite, #F7F5F0);
}

.timeline-section .text-center {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-14, 3.5rem);
}

.timeline-section .text-lead {
  margin-left: auto;
  margin-right: auto;
}

/* track */
.timeline {
  position: relative;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0;
}

/* centre line */
.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 1.75rem; /* mobile: aligns with 56px marker centre */
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(201, 168, 76, 0.35) 8%,
    var(--color-gold, #C9A84C) 20%,
    var(--color-gold, #C9A84C) 80%,
    rgba(201, 168, 76, 0.35) 92%,
    transparent 100%
  );
  opacity: 0.55;
  pointer-events: none;
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* steps */
.timeline__step {
  position: relative;
  width: 100%;
  margin: 0 0 var(--space-10, 2.5rem);
  padding-left: 5rem; /* room for marker on mobile */
  box-sizing: border-box;
}

.timeline__step:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .timeline__step {
    width: calc(50% - 2rem);
    margin-bottom: var(--space-14, 3.5rem);
    padding-left: 0;
    padding-right: 0;
  }

  /* odd = left column */
  .timeline__step:nth-child(odd) {
    margin-right: auto;
    padding-right: 2.75rem; /* gap from centre line */
    text-align: left;
  }

  /* even = right column */
  .timeline__step:nth-child(even) {
    margin-left: auto;
    padding-left: 2.75rem;
    text-align: left;
  }
}

/* number badge */
.timeline__marker {
  position: absolute;
  top: 1.25rem;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;  /* 56px */
  height: 3.5rem;
  border-radius: 50%;
  border: 2px solid var(--color-gold, #C9A84C);
  background: var(--color-navy-dark, #060F1F);
  color: var(--color-gold, #C9A84C);
  font-family: var(--font-heading, "DM Serif Display", serif);
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 0 0 8px var(--color-offwhite, #F7F5F0);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.4s ease,
    color 0.4s ease,
    box-shadow 0.4s ease;
}

@media (min-width: 768px) {
  .timeline__marker {
    top: 1.5rem;
    left: auto;
  }

  /* left cards → marker sits on the right edge, centred on the line */
  .timeline__step:nth-child(odd) .timeline__marker {
    right: -1.75rem; /* half of 3.5rem */
    left: auto;
    transform: translateX(50%);
  }

  /* right cards → marker sits on the left edge, centred on the line */
  .timeline__step:nth-child(even) .timeline__marker {
    left: -1.75rem;
    right: auto;
    transform: translateX(-50%);
  }

  /* keep hover scale without breaking centring */
  .timeline__step:nth-child(odd):hover .timeline__marker {
    transform: translateX(50%) scale(1.08);
  }
  .timeline__step:nth-child(even):hover .timeline__marker {
    transform: translateX(-50%) scale(1.08);
  }
}

.timeline__step:hover .timeline__marker {
  background: var(--color-gold, #C9A84C);
  color: var(--color-navy-dark, #060F1F);
  box-shadow:
    0 0 0 10px var(--color-offwhite, #F7F5F0),
    0 12px 28px rgba(201, 168, 76, 0.28);
}

@media (max-width: 767px) {
  .timeline__step:hover .timeline__marker {
    transform: scale(1.06);
  }
}

/* cards */
.timeline__content {
  position: relative;
  background: #fff;
  border: 1px solid rgba(11, 29, 58, 0.08);
  border-radius: 14px;
  padding: var(--space-7, 1.75rem) var(--space-7, 1.75rem) var(--space-6, 1.5rem);
  box-shadow: 0 10px 30px -18px rgba(11, 29, 58, 0.12);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

/* caret toward the centre line (desktop only) */
@media (min-width: 768px) {
  .timeline__content::after {
    content: "";
    position: absolute;
    top: 2.15rem; /* aligns with marker centre-ish */
    width: 12px;
    height: 12px;
    background: #fff;
    border: solid rgba(11, 29, 58, 0.08);
    transform: rotate(45deg);
  }

  .timeline__step:nth-child(odd) .timeline__content::after {
    right: -6px;
    border-width: 1px 1px 0 0;
  }

  .timeline__step:nth-child(even) .timeline__content::after {
    left: -6px;
    border-width: 0 0 1px 1px;
  }
}

.timeline__step:hover .timeline__content {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 22px 44px -20px rgba(11, 29, 58, 0.18);
}

@media (min-width: 768px) {
  .timeline__step:hover .timeline__content::after {
    border-color: rgba(201, 168, 76, 0.35);
  }
}

.timeline__title {
  margin: 0 0 var(--space-3, 0.75rem);
  font-family: var(--font-heading, "DM Serif Display", serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-navy, #0B1D3A);
}

.timeline__text {
  margin: 0 0 var(--space-5, 1.25rem);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #5a6b82;
}

.timeline__list {
  list-style: none;
  margin: 0;
  padding: var(--space-5, 1.25rem) 0 0;
  border-top: 1px solid rgba(11, 29, 58, 0.07);
  display: grid;
  gap: 0.7rem;
}

.timeline__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-navy, #0B1D3A);
}

.timeline__list li svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  color: var(--color-gold, #C9A84C);
}

/* ------------------------------------------------------------
   3. BOTTOM CTA
   ------------------------------------------------------------ */
.process-cta {
  position: relative;
  padding: var(--space-20, 5rem) 0;
  background: var(--color-navy-dark, #060F1F);
  overflow: hidden;
  text-align: center;
}

.process-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(201, 168, 76, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 0%, rgba(11, 29, 58, 0.5), transparent 50%);
  pointer-events: none;
}

.process-cta .container,
.process-cta__box {
  position: relative;
  z-index: 1;
}

.process-cta__box {
  max-width: 40rem;
  margin: 0 auto;
}

.process-cta__title {
  margin: 0 0 var(--space-4, 1rem);
  font-family: var(--font-heading, "DM Serif Display", serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-offwhite, #F7F5F0);
}

.process-cta__text {
  margin: 0 auto var(--space-8, 2rem);
  max-width: 32rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(247, 245, 240, 0.65);
}

.process-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
}

/* ------------------------------------------------------------
   4. REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .process-hero__bg img,
  .timeline__marker,
  .timeline__content {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}