/* ───────────────────────────────────────────────────────────
   BROKERAGE, REO & ASSET MANAGEMENT CSS
   ─────────────────────────────────────────────────────────── */

.page-brokerage-reo {
  background-color: var(--color-white);
  color: var(--color-ink);
}

/* ── Hero Section ── */
.reo-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-navy);
  color: var(--color-white);
  overflow: hidden;
  padding-top: var(--nav-height-desktop);
  padding-bottom: 6rem;
}

.reo-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.6;
}

.reo-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reo-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 128, 0.45) 0%,
    rgba(10, 10, 10, 0.9) 100%
  );
  z-index: 2;
}

.reo-hero__container {
  position: relative;
  z-index: 10;
  width: 100%;
}

.reo-hero__content {
  display: flex;
  flex-direction: column;
  max-width: 800px;
}

.reo-hero__eyebrow {
  margin-bottom: var(--space-8);
  font-size: var(--caption);
  font-weight: var(--font-bold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFFFFF !important;
}

.reo-hero__headline {
  font-size: var(--display-lg);
  font-weight: var(--font-black);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: var(--space-8);
  color: var(--color-white) !important;
}

.reo-hero__desc {
  font-size: var(--body-lg);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
}

.reo-hero__page-indicator {
  position: absolute;
  right: var(--container-padding);
  bottom: 0;
  font-size: var(--caption);
  font-weight: var(--font-bold);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Split Sections (01, 02, 03) ── */
.split-section {
  padding: var(--section-padding-lg) 0;
}

.split-section--light {
  background-color: var(--color-white);
  color: var(--color-ink);
}

.split-section--dark {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

.split-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.split-section__grid--reversed {
  direction: rtl;
}

.split-section__grid--reversed > * {
  direction: ltr;
}

.split-section__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-section__header {
  margin-bottom: var(--space-8);
}

.split-section__headline {
  font-size: var(--display-md);
  font-weight: var(--font-extrabold);
  text-transform: uppercase;
  line-height: 1;
}

.split-section--light .split-section__headline {
  color: var(--color-ink);
}

.split-section--dark .split-section__headline {
  color: var(--color-white);
}

.split-section__content {
  font-size: var(--body-lg);
  line-height: 1.7;
}

.split-section__content p {
  max-width: 580px;
  text-wrap: pretty;
}

.split-section--light .split-section__content {
  color: var(--color-muted);
}

.split-section--dark .split-section__content {
  color: rgba(255, 255, 255, 0.8);
}

.split-section__visual {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.split-section__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Operating Thread Section ── */
.operating-thread-section {
  padding: 5rem 0;
  background-color: var(--color-paper);
  text-align: center;
}

.operating-thread__header {
  margin-bottom: 3.5rem;
}

.operating-thread__title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.operating-thread__subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  color: #4A5568;
}

.operating-thread__diagram-container {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.5rem 0 2rem 0;
}

.operating-thread__line-axis {
  position: absolute;
  top: 31px;
  left: 6%;
  right: 6%;
  height: 2px;
  background-color: #CBD5E1;
  z-index: 1;
}

.operating-thread__nodes {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0;
}

.operating-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 140px;
  text-align: center;
}

.operating-node__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #000080;
  box-shadow: 0 0 0 5px var(--color-paper);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.operating-node:hover .operating-node__dot {
  transform: scale(1.3);
  background-color: #0056b3;
}

.operating-node__label {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000080;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.operating-node:hover .operating-node__label {
  color: #0056b3;
}

/* ── CTA Section ── */
.cta-section {
  padding: 6rem 0;
  background-color: var(--color-navy);
  color: var(--color-white);
  text-align: center;
}

.cta-headline {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.cta-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.75rem;
  max-width: 680px;
  margin-inline: auto;
}

.cta-button-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.cta-button-group .btn {
  width: 100%;
  min-height: 54px;
  padding: 0 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  box-sizing: border-box;
  border: 1px solid #FFFFFF;
  color: #FFFFFF;
  background-color: transparent;
  transition: all 0.25s ease;
}

.cta-button-group .btn:hover {
  background-color: #FFFFFF;
  color: #000080;
}

.cta-button-group .btn .btn__arrow {
  display: inline-block;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.cta-button-group .btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .split-section__grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .split-section__grid--reversed {
    direction: ltr;
  }
  .split-section__visual {
    aspect-ratio: 16/9;
  }
  
  /* Tablet Operating Thread: 3 columns */
  .operating-thread__line-axis {
    display: none;
  }
  .operating-thread__nodes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 1.5rem;
    justify-content: center;
  }
  .operating-node {
    width: 100%;
    flex-direction: column !important;
    gap: 0.75rem;
  }
  .operating-node__dot {
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  .reo-hero {
    padding-top: calc(var(--nav-height-mobile) + 2rem);
    padding-bottom: 4rem;
    min-height: auto;
  }
  .reo-hero__headline {
    font-size: clamp(2.5rem, 10vw, 3.75rem);
  }
  .reo-hero__page-indicator {
    display: none;
  }
  
  .split-section {
    padding: 4rem 0;
  }
  .split-section__headline {
    font-size: clamp(2rem, 6vw, 2.75rem);
  }
  
  /* Mobile Operating Thread: 2 columns */
  .operating-thread-section {
    padding: 4rem 0;
  }
  .operating-thread__header {
    margin-bottom: 2.5rem;
  }
  .operating-thread__nodes {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }
  
  .cta-section {
    padding: 4.5rem 0;
  }
  .cta-headline {
    font-size: clamp(2.25rem, 8vw, 3rem);
  }
  .cta-button-group {
    max-width: 100%;
  }
}
