/* ============================================================
   ASHWA RACING — RECRUITMENT PAGE
   System: Barlow Condensed + Barlow · dark motorsport-editorial
   ============================================================ */

/* ─── Tokens ────────────────────────────────────────────────── */
:root {
  --red:          #e8001d;
  --red-dark:     #b5001a;
  --black:        #0a0a0a;
  --charcoal:     #141414;
  --dark-grey:    #1c1c1c;
  --mid-grey:     #2a2a2a;
  --off-white:    #f7f6f4;
  --white:        #ffffff;
  --text-muted:   #888;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --ease-expo:    cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--charcoal); color: var(--white); overflow-x: hidden; }

/* ─── Shared tokens ─────────────────────────────────────────── */
.rc-section-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.rc-section-label--light { color: rgba(255,255,255,0.4); }
.rc-section-label--light .label-dash { background: rgba(255,255,255,0.3); }
.label-dash { display: block; width: 22px; height: 2px; background: var(--red); flex-shrink: 0; }

.rc-section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 0.9;
  letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--white); margin-bottom: 16px;
}
.rc-section-heading em { font-style: italic; color: var(--red); display: block; }

/* ─── Reveal animation ──────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition:
    opacity 0.55s var(--ease-expo) var(--delay, 0s),
    transform 0.55s var(--ease-expo) var(--delay, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.rc-hero {
  position: relative;
  height: 100svh; min-height: 580px; max-height: 920px;
  background: var(--black);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}

.rc-hero-bg {
  position: absolute; inset: 0;
  background: url('../../images/team/2021\ hybrd.webp') center / cover no-repeat;
  filter: brightness(0.25) saturate(0.7);
  transform: scale(1.04);
  transition: transform 8s var(--ease-expo);
}
.rc-hero:hover .rc-hero-bg { transform: scale(1.0); }

.rc-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 55%, rgba(0,0,0,0.04) 100%);
}

.rc-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
}

.rc-hero-stripe {
  position: absolute; top: 0; right: 9%; z-index: 2;
  width: 3px; height: 100%;
  background: var(--red);
}
.rc-hero-stripe::before {
  content: '';
  position: absolute; top: 0; left: -14px;
  width: 1px; height: 100%;
  background: var(--red); opacity: 0.28;
}

.rc-hero-content {
  position: relative; z-index: 3;
  padding: 0 7% 44px; max-width: 680px;
}

/* Status badge */
.rc-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 2px;
  margin-bottom: 24px; width: fit-content;
}
.rc-status-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}

/* Open state */
.rc-status--open {
  background: rgba(0, 200, 100, 0.12);
  border: 1px solid rgba(0, 200, 100, 0.3);
  color: #00c864;
}
.rc-status--open .rc-status-dot {
  background: #00c864;
  box-shadow: 0 0 8px rgba(0,200,100,0.6);
  animation: pulse 1.4s ease-in-out infinite;
}

/* Closed state */
.rc-status--closed {
  background: rgba(232, 0, 29, 0.1);
  border: 1px solid rgba(232, 0, 29, 0.2);
  color: rgba(255,255,255,0.4);
}
.rc-status--closed .rc-status-dot { background: rgba(255,255,255,0.25); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,200,100,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(0,200,100,0); }
}

.rc-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.eyebrow-dash { display: block; width: 28px; height: 2px; background: var(--red); flex-shrink: 0; }

.rc-hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 10rem);
  font-weight: 800; line-height: 0.75;
  letter-spacing: -0.02em; text-transform: uppercase;
  color: var(--white); margin-bottom: 22px;
  animation: slideUp 0.8s var(--ease-expo) both;
}
.rc-hero-title em { font-style: italic; color: var(--red); display: block; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rc-hero-desc {
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  line-height: 1.7; color: rgba(255,255,255,0.5);
  font-weight: 300; max-width: 460px; margin-bottom: 32px;
  animation: slideUp 0.8s var(--ease-expo) 0.15s both;
}

/* Actions */
.rc-hero-actions {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  animation: slideUp 0.8s var(--ease-expo) 0.25s both;
}

.rc-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--red); color: var(--white);
  border: 2px solid var(--red); border-radius: 3px;
  cursor: pointer; transition: all 0.2s ease;
}
.rc-btn-primary:not([disabled]):hover {
  background: var(--red-dark); border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,0,29,0.3);
}
.rc-btn-primary[disabled] {
  opacity: 0.4; cursor: not-allowed;
  background: transparent; border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.35);
}

.rc-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  border: 2px solid rgba(255,255,255,0.25); border-radius: 3px;
  transition: all 0.2s ease;
}
.rc-btn-ghost:hover {
  border-color: var(--white); background: rgba(255,255,255,0.06);
}

/* Stats bar */
.rc-hero-stats {
  position: relative; z-index: 3;
  display: flex; align-items: center;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 7%;
  flex-wrap: wrap; gap: 0;
}

.rhs { display: flex; flex-direction: column; padding: 0 40px 0 0; }
.rhs:first-child { padding-left: 0; }

.rhs-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; color: var(--white); line-height: 1;
  letter-spacing: -0.02em;
}
.rhs-num sup { font-size: 0.55em; color: var(--red); vertical-align: super; }

.rhs-label {
  font-family: var(--font-display);
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 6px;
}

.rhs-div {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.1);
  margin-right: 40px; flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   WHY JOIN
═══════════════════════════════════════════════════════════════ */
.rc-why {
  background: var(--charcoal);
  padding: 100px 7%;
}

.rc-why-header {
  max-width: 520px; margin-bottom: 64px;
}
.rc-why-header p {
  font-size: 0.95rem; line-height: 1.75;
  color: rgba(255,255,255,0.4); font-weight: 300;
}

.rc-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.rc-benefit {
  background: var(--dark-grey);
  padding: 32px 28px;
  position: relative; overflow: hidden;
  border-top: 2px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease-expo);
}
.rc-benefit:hover {
  background: #252525;
  border-top-color: var(--red);
  transform: translateY(-4px);
}

.rc-benefit-num {
  font-family: var(--font-display);
  font-size: 0.62rem; letter-spacing: 0.2em;
  color: var(--text-muted); text-transform: uppercase;
  margin-bottom: 16px;
}

.rc-benefit-icon {
  font-size: 1.4rem; color: var(--red);
  margin-bottom: 14px;
  transition: transform 0.3s ease;
}
.rc-benefit:hover .rc-benefit-icon { transform: scale(1.15); }

.rc-benefit h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--white); margin-bottom: 10px; line-height: 1.2;
}

.rc-benefit p {
  font-size: 0.82rem; line-height: 1.7;
  color: rgba(255,255,255,0.4); font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════════
   PROCESS TIMELINE
═══════════════════════════════════════════════════════════════ */
.rc-process {
  background: var(--black);
  padding: 100px 7%;
}

.rc-process-inner { max-width: 860px; }

.rc-process-header { margin-bottom: 64px; }

.rc-timeline {
  display: flex; flex-direction: column;
  gap: 0;
  position: relative;
}

/* Vertical connecting line */
.rc-timeline::before {
  content: '';
  position: absolute;
  left: 21px; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.07);
}

.rc-tl-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 24px;
  padding-bottom: 52px;
  position: relative;
}
.rc-tl-item:last-child { padding-bottom: 0; }

.rc-tl-node {
  display: flex; align-items: flex-start;
  padding-top: 3px; flex-shrink: 0;
  position: relative; z-index: 1;
}

.rc-tl-num {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--dark-grey);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 800;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.rc-tl-item:hover .rc-tl-num {
  border-color: var(--red);
  color: var(--white);
  background: var(--red);
}

.rc-tl-content {
  padding-top: 8px;
  padding-bottom: 0;
}

.rc-tl-label {
  font-family: var(--font-display);
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 6px;
}

.rc-tl-title {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--white); margin-bottom: 10px;
}

.rc-tl-content p {
  font-size: 0.87rem; line-height: 1.75;
  color: rgba(255,255,255,0.4); font-weight: 300;
  max-width: 560px;
}

/* ═══════════════════════════════════════════════════════════════
   SUBSYSTEMS CTA
═══════════════════════════════════════════════════════════════ */
.rc-subsystems {
  background: var(--red);
  overflow: hidden;
}

.rc-subsystems-inner {
  padding: 100px 7% 60px;
  max-width: 700px;
}

.rc-subsystems-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800; line-height: 0.9;
  letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--white); margin-bottom: 16px;
}
.rc-subsystems-heading em {
  font-style: italic; color: rgba(255,255,255,0.6); display: block;
}

.rc-subsystems-inner p {
  font-size: 0.95rem; line-height: 1.75;
  color: rgba(255,255,255,0.65); font-weight: 300;
  margin-bottom: 32px; max-width: 480px;
}

.rc-subsystems-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,0.5);
  padding-bottom: 3px;
  transition: gap 0.2s ease, border-color 0.2s ease;
}
.rc-subsystems-link:hover { gap: 16px; border-color: var(--white); }

/* Ticker strip */
.rc-sub-strip {
  overflow: hidden;
  background: var(--red-dark);
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.rc-sub-track {
  display: flex; width: max-content; gap: 0;
  animation: subTicker 30s linear infinite;
  white-space: nowrap;
}

.rc-sub-track span {
  font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 0 24px;
}
.rc-sub-track .sep { color: rgba(255,255,255,0.2) !important; padding: 0 4px !important; }

@keyframes subTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.rc-sub-strip:hover .rc-sub-track { animation-play-state: paused; }

/* ─── Accessibility ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .rc-sub-track { animation: none; }
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .rc-benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .rc-hero-content { padding: 0 5% 40px; }
  .rc-hero-stats { padding: 16px 5%; flex-wrap: wrap; row-gap: 16px; }
  .rhs-div { display: none; }
  .rhs { padding-right: 28px; }
  .rc-why, .rc-process { padding: 72px 5%; }
  .rc-benefits-grid { grid-template-columns: 1fr; }
  .rc-subsystems-inner { padding: 72px 5% 48px; }
  .rc-hero-actions { gap: 10px; }
  .rc-btn-primary, .rc-btn-ghost { padding: 10px 20px; font-size: 0.88rem; }
}

/* ============================================================
   FINAL POLISH + MISSING STYLES
   ============================================================ */

/* Timeline vertical line alignment fix */
.rc-timeline::before {
  left: 22px;
}

/* Active timeline state (when revealed) */
.rc-tl-item.visible .rc-tl-num {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(232,0,29,0.3);
}

/* Smooth timeline hover transition */
.rc-tl-item {
  transition: transform 0.35s var(--ease-expo);
}
.rc-tl-item:hover {
  transform: translateX(6px);
}

/* Hero subtle entrance fade for stats */
.rc-hero-stats {
  animation: fadeUpStats 0.8s var(--ease-expo) 0.4s both;
}
@keyframes fadeUpStats {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Subsystem CTA background depth effect */
.rc-subsystems {
  position: relative;
}
.rc-subsystems::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}

/* Hero stripe responsive adjustment */
@media (max-width: 640px) {
  .rc-hero-stripe { right: 4%; }
}

/* Improve benefit hover glow */
.rc-benefit:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* Slight fade on ticker edges */
.rc-sub-strip {
  position: relative;
}
.rc-sub-strip::before,
.rc-sub-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  pointer-events: none;
}
.rc-sub-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--red-dark), transparent);
}
.rc-sub-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--red-dark), transparent);
}
