/* ==========================================================================
   brand-sections.css — 2026 redesign of Careers + About Us content sections.
   Shares the site design system: brand red #f71915, ink #0a0a0b, Jost
   headings / Nunito body / Mulish accents (applied via existing utility
   classes in markup), white cards on soft surfaces, 16–28px radii, hairline
   borders and soft elevation on hover — consistent with the mega-menu sheet
   and listing cards elsewhere in the app.
   Namespaces: .cr-* (careers / shared), .ab-* (about us), .jr-* (journey).
   ========================================================================== */

:root {
  --eq-red: #f71915;
  --eq-red-soft: rgba(247, 25, 21, 0.08);
  --eq-ink: #0a0a0b;
  --eq-muted: #5c5c62;
  --eq-line: rgba(10, 10, 11, 0.08);
  --eq-surface: #ffffff;
  --eq-shadow-rest: 0 1px 2px rgba(15, 17, 21, 0.04);
  --eq-shadow-lift: 0 18px 36px rgba(10, 10, 11, 0.1);
  --eq-ease: cubic-bezier(0.32, 0.08, 0.24, 1);
}

/* --------------------------------------------------------------------------
   Section shell + headings
   -------------------------------------------------------------------------- */
.cr-section {
  padding-block: 64px;
}

.cr-container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.cr-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.cr-eyebrow {
  display: inline-block;
  color: var(--eq-red);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cr-eyebrow.light {
  color: #ff6b62;
}

.cr-title {
  color: var(--eq-ink);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}

.cr-title .cr-accent {
  color: var(--eq-red);
}

.cr-lead {
  color: var(--eq-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 680px;
}

.cr-lead.light {
  color: rgba(255, 255, 255, 0.72);
}

/* --------------------------------------------------------------------------
   Careers — culture bento ("How we work?")
   -------------------------------------------------------------------------- */
.cr-culture {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.cr-culture-media {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #f7f4f4;
  border: 1px solid var(--eq-line);
  min-height: 240px;
}

.cr-culture-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cr-culture-card {
  background: var(--eq-surface);
  border: 1px solid var(--eq-line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--eq-shadow-rest);
  transition:
    transform 0.28s var(--eq-ease),
    box-shadow 0.28s var(--eq-ease),
    border-color 0.28s var(--eq-ease);
}

.cr-culture-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--eq-shadow-lift);
  border-color: rgba(247, 25, 21, 0.22);
}

.cr-index {
  display: inline-block;
  color: var(--eq-red);
  background: var(--eq-red-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.cr-culture-card h3 {
  color: var(--eq-ink);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.cr-culture-card p {
  color: var(--eq-muted);
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 768px) {
  .cr-culture {
    grid-template-columns: repeat(2, 1fr);
  }

  .cr-culture-media {
    grid-column: 1 / -1;
    min-height: 280px;
  }
}

@media (min-width: 1024px) {
  .cr-culture {
    grid-template-columns: 5fr 3.6fr 3.6fr;
    grid-auto-rows: 1fr;
  }

  .cr-culture-media {
    grid-column: auto;
    grid-row: 1 / 3;
    min-height: 0;
  }
}

/* --------------------------------------------------------------------------
   Careers — statement band ("Enjoy Yourself")
   -------------------------------------------------------------------------- */
.cr-band {
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(247, 25, 21, 0.055) 0%, rgba(247, 25, 21, 0) 70%),
    #faf7f7;
}

.cr-band .cr-head {
  margin-bottom: 0;
}

.cr-band .cr-lead {
  max-width: 760px;
}

/* --------------------------------------------------------------------------
   Careers — values grid ("Value Vignette")
   -------------------------------------------------------------------------- */
.cr-values {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cr-values {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cr-values {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Same card language as the "How we work?" culture cards — hairline
   border, soft lift, red border tint on hover. No accent bars. */
.cr-value-card {
  background: var(--eq-surface);
  border: 1px solid var(--eq-line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--eq-shadow-rest);
  transition:
    transform 0.28s var(--eq-ease),
    box-shadow 0.28s var(--eq-ease),
    border-color 0.28s var(--eq-ease);
}

.cr-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--eq-shadow-lift);
  border-color: rgba(247, 25, 21, 0.22);
}

.cr-value-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--eq-red-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.cr-value-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cr-value-card h3 {
  color: var(--eq-ink);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.cr-value-card p {
  color: var(--eq-muted);
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Careers — reach out panel (email CTA)
   -------------------------------------------------------------------------- */
.cr-reach-panel {
  position: relative;
  background: #0d0d10;
  border-radius: 28px;
  padding: clamp(48px, 7vw, 80px) 24px;
  text-align: center;
  overflow: hidden;
}

.cr-reach-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(247, 25, 21, 0.22) 0%, rgba(247, 25, 21, 0) 70%);
  pointer-events: none;
}

.cr-reach-panel > * {
  position: relative;
}

.cr-reach-sub {
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 600;
  margin: 0 0 10px;
  text-transform: capitalize;
}

.cr-reach-mail {
  display: inline-block;
  color: #fff;
  font-size: clamp(1.5rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 3px solid var(--eq-red);
  padding-bottom: 4px;
  margin: 4px 0 20px;
  transition: color 0.25s var(--eq-ease), border-color 0.25s var(--eq-ease);
  word-break: break-word;
}

.cr-reach-mail:hover {
  color: #ff6b62;
  border-color: #ff6b62;
}

.cr-reach-panel .cr-lead {
  margin-bottom: 28px;
}

/* --------------------------------------------------------------------------
   About Us — vision & mission
   -------------------------------------------------------------------------- */
.ab-block {
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: 1fr;
}

.ab-block + .ab-block {
  margin-top: 64px;
}

.ab-media {
  margin: 0;
}

.ab-media img {
  width: 100%;
  height: auto;
  display: block;
}

.ab-copy .cr-eyebrow {
  margin-bottom: 4px;
}

/* Same card language as the "How we work?" culture cards. */
.ab-point {
  background: var(--eq-surface);
  border: 1px solid var(--eq-line);
  border-radius: 20px;
  padding: 24px 26px;
  margin-top: 18px;
  box-shadow: var(--eq-shadow-rest);
  transition:
    transform 0.28s var(--eq-ease),
    box-shadow 0.28s var(--eq-ease),
    border-color 0.28s var(--eq-ease);
}

.ab-point:hover {
  transform: translateY(-3px);
  box-shadow: var(--eq-shadow-lift);
  border-color: rgba(247, 25, 21, 0.22);
}

.ab-point h3 {
  color: var(--eq-ink);
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.ab-point p {
  color: var(--eq-muted);
  line-height: 1.65;
  margin: 0;
}

@media (min-width: 992px) {
  .ab-block {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .ab-flip .ab-media {
    order: 2;
  }
}

/* --------------------------------------------------------------------------
   About Us — journey timeline (vertical spine)
   A center spine runs down the section; milestones alternate left/right
   and reveal as they enter the viewport. A gradient progress line fills
   the spine as the visitor scrolls through the years.
   -------------------------------------------------------------------------- */
.jn-timeline {
  position: relative;
  max-width: 980px;
  margin-inline: auto;
  padding-block: 8px;
}

.jn-spine {
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: 2px;
  transform: translateX(-50%);
  background: var(--eq-line);
  border-radius: 1px;
  overflow: hidden;
}

.jn-progress {
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, #f71915, #ff7a4c);
}

.jn-row {
  position: relative;
  width: 50%;
  padding: 0 44px 48px 0;
}

.jn-row:last-child {
  padding-bottom: 0;
}

.jn-row.jn-right {
  left: 50%;
  padding: 0 0 48px 44px;
}

.jn-node {
  position: absolute;
  top: 30px;
  right: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--eq-red);
  box-shadow: 0 0 0 5px rgba(247, 25, 21, 0.12);
  z-index: 1;
}

.jn-row.jn-right .jn-node {
  right: auto;
  left: -8px;
}

/* Same card language as the "How we work?" culture cards. */
.jn-card {
  background: var(--eq-surface);
  border: 1px solid var(--eq-line);
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: var(--eq-shadow-rest);
  transition:
    transform 0.28s var(--eq-ease),
    box-shadow 0.28s var(--eq-ease),
    border-color 0.28s var(--eq-ease);
}

.jn-row:hover .jn-card {
  transform: translateY(-4px);
  box-shadow: var(--eq-shadow-lift);
  border-color: rgba(247, 25, 21, 0.22);
}

.jn-year {
  display: block;
  color: var(--eq-ink);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
}

.jn-year::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #f71915, #ff7a4c);
  margin-top: 10px;
}

.jn-card p {
  color: var(--eq-muted);
  line-height: 1.65;
  margin: 14px 0 0;
}

/* Scroll reveal (JS toggles .is-in via IntersectionObserver). */
.jn-row {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s var(--eq-ease),
    transform 0.6s var(--eq-ease);
}

.jn-row.is-in {
  opacity: 1;
  transform: none;
}

/* Mobile: spine hugs the left edge, all cards on the right of it. */
@media (max-width: 767.98px) {
  .jn-spine {
    left: 10px;
    transform: none;
  }

  .jn-row,
  .jn-row.jn-right {
    width: 100%;
    left: 0;
    padding: 0 0 36px 38px;
  }

  .jn-node,
  .jn-row.jn-right .jn-node {
    left: 3px;
    right: auto;
  }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cr-culture-card,
  .cr-value-card,
  .ab-point,
  .jn-card,
  .jn-row {
    transition: none;
  }

  .jn-row {
    opacity: 1;
    transform: none;
  }
}
