/* ==========================================================================
   Services page styles
   ========================================================================== */

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rfa-mid);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--rfa-light);
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 2px;
}
.section-lede {
  color: var(--rfa-ink-soft);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ==========================================================================
   Services Offered & How It Works (new section)
   ========================================================================== */

.howitworks-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
  max-width: 980px;
  margin-inline: auto;
}

.howitworks-step {
  background: #fff;
  border: 1px solid var(--rfa-border);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  box-shadow: 0 10px 26px var(--rfa-shadow-soft);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.howitworks-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px var(--rfa-shadow-soft);
  border-color: var(--rfa-light);
}

.howitworks-body {
  position: relative;
  padding-left: 66px;
}

.howitworks-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--rfa-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(44,95,86,0.28);
}

.howitworks-body h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rfa-deep);
  margin: 6px 0 10px;
  line-height: 1.35;
}
.howitworks-body p {
  color: var(--rfa-ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 10px;
}
.howitworks-body p:last-child { margin-bottom: 0; }

/* Image attached to a step */
.howitworks-media {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--rfa-mint);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.howitworks-media img {
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

@media (max-width: 640px) {
  .howitworks-step { padding: 22px 18px; }
  .howitworks-body { padding-left: 0; padding-top: 54px; }
  .howitworks-num { position: absolute; top: 0; left: 0; }
  .howitworks-body h3 { font-size: 1rem; }
  .howitworks-body p { font-size: 0.9rem; }
  .howitworks-media { padding: 10px; min-height: 160px; }
  .howitworks-media img { max-height: 240px; }
}

/* ---------- Process list (8 steps) ---------- */
.process-list {
  list-style: none;
  padding: 0;
  margin: 30px auto 0;
  max-width: 780px;
  counter-reset: none;
}
.process-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rfa-border);
}
.process-item:last-child { border-bottom: none; }
.process-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rfa-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.process-body h3 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--rfa-deep);
  margin: 0 0 4px;
}
.process-body p { margin: 0; color: var(--rfa-ink-soft); }

@media (max-width: 500px) {
  .process-item { grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; }
  .process-num { width: 42px; height: 42px; font-size: 1rem; }
}

/* ---------- Facilitation grid ---------- */
.facilitation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.facilitation-card {
  background: #fff;
  border: 1px solid var(--rfa-border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.facilitation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px var(--rfa-shadow-soft);
  border-color: var(--rfa-light);
}
.facilitation-card h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--rfa-deep);
  margin: 0 0 8px;
}
.facilitation-card p {
  margin: 0;
  color: var(--rfa-ink-soft);
  font-size: 0.94rem;
}

/* ---------- Service cards ---------- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--rfa-border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px var(--rfa-shadow-soft);
  border-color: var(--rfa-light);
}
.service-badge {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--rfa-mint-deep);
  color: var(--rfa-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ---------- Service icons (FIXED SIZE) ---------- */
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--rfa-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rfa-primary);
  margin-bottom: 14px;
  flex-shrink: 0;
  overflow: hidden;
}
.service-icon svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  display: block;
  flex-shrink: 0;
}
.service-icon svg * {
  stroke-width: 1.6;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--rfa-deep);
  margin: 0 0 6px;
  line-height: 1.3;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--rfa-ink-soft);
  margin: 0;
}

/* ---------- Call pill ---------- */
.call-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rfa-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 30px;
  margin: 22px auto 0;
  box-shadow: 0 10px 22px var(--rfa-shadow);
  transition: transform var(--t-fast), background var(--t-fast);
}
.call-pill:hover { transform: translateY(-2px); background: var(--rfa-deep); color: #fff; }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  margin-top: 50px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 26px;
  bottom: 26px;
  width: 2px;
  background-image: linear-gradient(to bottom, var(--rfa-mid) 0 6px, transparent 6px 13px);
  background-size: 2px 13px;
  background-repeat: repeat-y;
}
.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding-bottom: 34px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-marker {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--rfa-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rfa-primary);
  flex-shrink: 0;
}
.timeline-marker svg { width: 22px; height: 22px; }
.timeline-marker--final {
  background: var(--rfa-primary);
  border-color: var(--rfa-primary);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(74,170,155,0.18);
}
.timeline-num {
  position: absolute;
  top: -6px; right: -6px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--rfa-deep);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.timeline-content { padding-top: 4px; }
.timeline-content h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rfa-deep);
  margin: 0 0 4px;
}
.timeline-content p {
  font-size: 0.94rem;
  color: var(--rfa-ink-soft);
  margin: 0;
  max-width: 540px;
}

/* ---------- Wellness card ---------- */
.wellness-card {
  background: linear-gradient(135deg, var(--rfa-primary), var(--rfa-light));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  box-shadow: 0 18px 36px var(--rfa-shadow);
}
.wellness-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wellness-icon svg { width: 26px; height: 26px; }
.wellness-card h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.wellness-card p {
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 0.96rem;
  line-height: 1.65;
}
@media (max-width: 560px) {
  .wellness-card { flex-direction: column; padding: 28px 22px; }
}

/* ---------- Mission band ---------- */
.mission-band {
  background: linear-gradient(120deg, var(--rfa-deep), var(--rfa-primary));
  border-radius: var(--radius-lg);
  padding: 44px 30px;
  text-align: center;
  color: #fff;
}
.mission-tagline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
  margin: 0 0 8px;
}
.mission-sub {
  font-size: 0.96rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

/* ---------- CTA strip (fallback if not loaded from home.css) ---------- */
.cta-strip {
  background: linear-gradient(120deg, var(--rfa-deep), var(--rfa-primary));
  color: #fff;
  padding-block: 50px;
}
.cta-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.cta-strip h3 {
  color: #fff;
  font-family: var(--font-heading);
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.65rem);
}
.cta-strip p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 560px;
}
@media (max-width: 600px) {
  .cta-strip-inner { flex-direction: column; text-align: center; }
}