/* ============================================================
   REPAIR STATUS PAGE
   Sections: hero (photo + sample progress card) → contact
   channels → online request (aside + leads form) → how-it-works
   steps. FAQ + CTA band reuse home.css components.
   Tokens only — grays from global.css, muted text #717171 to
   match areas.css, cards on --radius-lg / --gray-50 / --shadow-card.
   ============================================================ */

.repair-status-page {
  color: var(--gray-900);
  background: var(--white);
}

.rs-container {
  /* Match the sitewide container: content capped at --container-max with
     responsive side gutters (same net width as .container / .hero__inner). */
  max-width: var(--container-outer);
  margin-inline: auto;
  padding-inline: var(--header-pad-x);
}

/* ---------- Shared: eyebrow + section head ---------- */
.rs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  width: fit-content;
  margin: 0 0 var(--sp-16);
  padding: var(--sp-8) var(--sp-12);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  color: var(--gray-900);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rs-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-red);
}

.rs-section-head {
  max-width: 760px;
  margin-bottom: var(--sp-36);
}

.rs-section-head h2,
.rs-request__aside h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.1;
}

.rs-section-head p:not(.rs-eyebrow) {
  margin: var(--sp-16) 0 0;
  max-width: 620px;
  color: #717171;
  font-size: var(--fs-body);
  line-height: 1.65;
}

/* ============================================================
   1. HERO
   ============================================================ */
.rs-hero {
  padding: var(--sp-16) 0 clamp(56px, 7vw, 100px);
}

.rs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.rs-hero__breadcrumb {
  margin-bottom: var(--sp-32);
}

.rs-hero__title {
  margin: 0;
  color: var(--gray-900);
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.05;
}

.rs-hero__lead {
  max-width: 560px;
  margin: var(--sp-20) 0 0;
  color: #717171;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
}

.rs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-12);
  margin-top: var(--sp-32);
}

.rs-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  margin-top: var(--sp-28);
}

.rs-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  padding: 10px 14px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-round);
  color: var(--gray-900);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.rs-chip span {
  display: inline-flex;
  color: var(--color-red);
}

.rs-chip svg {
  width: 16px;
  height: 16px;
}

/* ---------- Hero visual + sample progress card ---------- */
.rs-hero__visual {
  position: relative;
  min-width: 0;
}

.rs-hero__visual > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--gray-50);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.rs-progress {
  position: absolute;
  right: clamp(16px, 2.5vw, 28px);
  bottom: clamp(16px, 2.5vw, 28px);
  left: clamp(16px, 2.5vw, 28px);
  padding: 18px 20px;
  border: 1px solid var(--gray-50);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.rs-progress__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-12);
}

.rs-progress__head strong {
  color: var(--gray-900);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.rs-progress__badge {
  padding: 4px 10px;
  border: 1px solid rgba(225, 26, 23, 0.2);
  border-radius: var(--radius-round);
  background: rgba(225, 26, 23, 0.08);
  color: var(--color-red);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rs-progress__track {
  height: 6px;
  margin-top: var(--sp-16);
  border-radius: var(--radius-round);
  background: var(--gray-100);
  overflow: hidden;
}

.rs-progress__track span {
  display: block;
  height: 100%;
  border-radius: var(--radius-round);
  background: var(--color-red);
}

.rs-progress__steps {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-8);
  margin: var(--sp-12) 0 0;
  padding: 0;
  list-style: none;
}

.rs-progress__steps li {
  color: var(--gray-300);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rs-progress__steps li.is-done {
  color: var(--gray-900);
}

.rs-progress__steps li.is-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-red);
}

.rs-progress__steps li.is-active::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-red);
  animation: rs-pulse 1.6s var(--ease) infinite;
}

@keyframes rs-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 26, 23, 0.35); }
  50%      { box-shadow: 0 0 0 5px rgba(225, 26, 23, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .rs-progress__steps li.is-active::before { animation: none; }
}

.rs-progress__note {
  margin: var(--sp-12) 0 0;
  color: #717171;
  font-size: 0.75rem;
  line-height: 1.5;
}

/* ============================================================
   2. CONTACT CHANNELS
   ============================================================ */
.rs-channels {
  padding: 0 0 clamp(64px, 8vw, 110px);
}

.rs-channels__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-20);
}

.rs-channel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--gray-50);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.rs-channel__tag {
  position: absolute;
  top: clamp(20px, 2.5vw, 28px);
  right: clamp(20px, 2.5vw, 28px);
  padding: 5px 12px;
  border-radius: var(--radius-round);
  background: var(--color-red);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rs-channel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--sp-20);
  border-radius: 50%;
  background: rgba(225, 26, 23, 0.08);
  color: var(--color-red);
}

.rs-channel__icon svg {
  width: 22px;
  height: 22px;
}

.rs-channel h3 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
}

.rs-channel p {
  margin: var(--sp-12) 0 var(--sp-24);
  color: #717171;
  font-size: var(--fs-body);
  line-height: 1.65;
}

.rs-channel__foot {
  display: grid;
  gap: var(--sp-12);
  justify-items: start;
  width: 100%;
  margin-top: auto;
}

.rs-channel__phone {
  color: var(--gray-900);
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.65rem);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.rs-channel__phone:hover {
  color: var(--color-red);
}

.rs-channel__caption {
  color: #717171;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Dark featured card (call) */
.rs-channel--dark {
  border-color: var(--gray-900);
  background: var(--gray-900);
  color: var(--white);
}

.rs-channel--dark .rs-channel__icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.rs-channel--dark h3 {
  color: var(--white);
}

.rs-channel--dark p {
  color: rgba(255, 255, 255, 0.72);
}

.rs-channel--dark .rs-channel__phone {
  color: var(--white);
}

.rs-channel--dark .rs-channel__phone:hover {
  color: var(--gray-200);
}

.rs-channel--dark .rs-channel__caption {
  color: rgba(255, 255, 255, 0.6);
}

/* Base .btn--primary is a dark pill — flip it to white on the dark card
   (same treatment as .btn--on-photo in the CTA banner). */
.rs-channel--dark .btn--primary {
  background: var(--white);
  color: var(--gray-900);
}

.rs-channel--dark .btn--primary .btn__icon {
  background: var(--gray-900);
  color: var(--white);
}

.rs-channel--dark .btn--primary:hover {
  background: var(--color-red);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(225, 26, 23, 0.35);
}

.rs-channel--dark .btn--primary:hover .btn__icon {
  background: var(--white);
  color: var(--color-red);
}

/* ============================================================
   3. ONLINE REQUEST  (aside + woodley-leads form)
   ============================================================ */
.rs-request {
  padding: clamp(64px, 8vw, 110px) 0;
  border-block: 1px solid var(--gray-50);
  background: var(--surface-muted);
  /* Anchor lands below the fixed header. */
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.rs-request__grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.44fr) minmax(0, 0.56fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.rs-request__aside {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-24));
}

.rs-request__sub {
  max-width: 480px;
  margin: var(--sp-16) 0 0;
  color: #717171;
  font-size: var(--fs-body);
  line-height: 1.65;
}

.rs-request__list-title {
  margin: var(--sp-32) 0 0;
  color: var(--gray-900);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.rs-checklist {
  margin: var(--sp-8) 0 0;
  padding: 0;
  list-style: none;
}

.rs-checklist li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: var(--sp-12);
  align-items: center;
  padding: var(--sp-16) 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-900);
  font-size: 0.975rem;
  font-weight: 500;
  line-height: 1.5;
}

.rs-checklist li:last-child {
  border-bottom: 0;
}

.rs-checklist__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--white);
}

.rs-checklist__icon svg {
  width: 13px;
  height: 13px;
}

.rs-note {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--sp-12);
  align-items: start;
  margin-top: var(--sp-24);
  padding: 18px 20px;
  border: 1px solid rgba(225, 26, 23, 0.18);
  border-radius: var(--radius-md);
  background: #fff8f8;
}

.rs-note__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(225, 26, 23, 0.08);
  color: var(--color-red);
}

.rs-note__icon svg {
  width: 20px;
  height: 20px;
}

.rs-note p {
  margin: 0;
  color: #717171;
  font-size: 0.875rem;
  line-height: 1.55;
}

.rs-note p strong {
  color: var(--gray-900);
}

.rs-request__form .form-section__card {
  box-shadow: var(--shadow-card);
}

.rs-form__hint {
  margin: var(--sp-12) 0 0;
  color: #717171;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

/* ============================================================
   4. HOW IT WORKS  (numbered steps)
   ============================================================ */
.rs-steps {
  padding: clamp(64px, 8vw, 110px) 0;
}

.rs-steps__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-20);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rs-step;
}

.rs-step {
  padding: clamp(24px, 2.5vw, 30px);
  border: 1px solid var(--gray-50);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
}

.rs-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  background: var(--white);
  color: var(--color-red);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}

.rs-step h3 {
  margin: var(--sp-16) 0 0;
  color: var(--gray-900);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.rs-step p {
  margin: var(--sp-8) 0 0;
  color: #717171;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .rs-hero__grid,
  .rs-request__grid {
    grid-template-columns: 1fr;
  }

  .rs-request__aside {
    position: static;
  }

  .rs-channels__grid {
    grid-template-columns: 1fr;
  }

  .rs-steps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .rs-hero {
    padding-bottom: var(--sp-56);
  }

  .rs-channels {
    padding-bottom: var(--sp-56);
  }

  .rs-request,
  .rs-steps {
    padding-block: var(--sp-56);
  }

  .rs-hero__visual > img {
    aspect-ratio: 4 / 3;
  }

  .rs-progress {
    position: static;
    margin-top: var(--sp-12);
    box-shadow: var(--shadow-card);
  }

  .rs-steps__grid {
    grid-template-columns: 1fr;
  }

  .rs-hero__actions .btn,
  .rs-channel__foot .btn {
    width: 100%;
    justify-content: space-between;
  }
}
