/* Hallmark: existing Finexa design system; P5 H5 E4 S5 R5 V4. */

/* Keep in-content links recognizable and leave space in the call control. */
.service-section-head a:not(.btn),
.faq-answer a:not(.btn),
.bookkeeping-fit-copy a:not(.btn),
.fit-list a:not(.btn) {
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.get-started .btn-outline-white { gap: 0.3em; }

/* Guide links support the consultation action without competing with it. */
.related-band .btn-service-guide {
  border: 1px solid var(--dark);
  background: transparent;
  color: var(--dark-footer);
}
.related-band .btn-service-guide:hover,
.related-band .btn-service-guide:focus-visible {
  background: var(--dark-footer);
  color: var(--surface);
}

/* The Assistant occupies its own space in the existing mobile action bar. */
@media (max-width: 70rem) {
  .mobile-booking-bar {
    padding-right: calc(max(16px, env(safe-area-inset-right)) + 60px);
  }
  .finexa-assistant {
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 120;
  }
  .finexa-assistant-toggle { width: 48px; height: 48px; }
  .finexa-assistant-panel { bottom: 66px; }
}
@media (max-width: 380px) {
  .mobile-booking-primary { padding-inline: 6px; font-size: 12px; }
  .mobile-booking-call { min-width: 62px; padding-inline: 8px; font-size: 13px; }
}

/* Small, readable service examples use the existing navy and neutral palette. */
.service-example-section { padding-block: clamp(64px, 7vw, 104px); }
.service-example-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}
.service-example-intro { max-width: 520px; }
.service-example-intro h2 { max-width: 18ch; }
.service-example-intro > p:not(.eyebrow) {
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.service-example-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.service-example-panel {
  min-width: 0;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--border-cool);
  border-top: 4px solid var(--dark);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(20, 41, 74, 0.07);
}
.service-example-panel h3 {
  color: var(--dark-footer);
  font-size: 21px;
  line-height: 1.25;
}
.service-example-kicker {
  margin-bottom: 10px;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.service-example-caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.service-example-panel dl { margin: 24px 0 0; }
.service-example-panel dl > div {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--border-cool);
}
.service-example-panel dt { color: var(--dark-footer); font-weight: 800; }
.service-example-panel dd { margin: 0; color: var(--muted); line-height: 1.55; }
.service-example-panel ul,
.service-example-panel ol { margin: 20px 0 0; padding-left: 1.25em; }
.service-example-panel li { margin: 0 0 10px; color: var(--ink-secondary); line-height: 1.5; }
.service-example-panel li:last-child { margin-bottom: 0; }

.service-example-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.service-example-steps li {
  min-width: 0;
  margin: 0;
  padding: 14px 10px;
  border-radius: 8px;
  background: var(--surface-cool-strong);
  color: var(--dark-footer);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.service-example-steps li::before { content: none; }
.service-example-inline { margin-top: 48px; }
.service-example-inline .service-example-panel { max-width: 100%; }
.service-comparison { margin-top: 40px; }
.service-comparison > h3 { color: var(--dark-footer); font-size: 21px; }
.service-role-grid,
.service-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.service-role-grid article,
.service-workflow-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border-cool);
  border-radius: 9px;
  background: var(--surface-cool);
}
.service-role-grid h4,
.service-workflow-grid h4 { color: var(--dark-footer); font-size: 16px; }
.service-role-grid p,
.service-workflow-grid p { margin-top: 9px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.service-workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-workflow-grid ol { margin-top: 14px; }
.service-workflow-grid li { font-size: 15px; }
.service-sample-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.service-sample-metrics div { min-width: 0; padding: 15px; border-radius: 8px; background: var(--surface-cool); }
.service-sample-metrics span { display: block; color: var(--muted); font-size: 13px; }
.service-sample-metrics strong { display: block; margin-top: 5px; color: var(--dark-footer); font-size: clamp(17px, 2vw, 23px); }
.service-sample-comment {
  margin-top: 18px;
  padding: 16px;
  border-left: 3px solid var(--accent);
  background: var(--surface-cool);
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.55;
}
.service-review-link { display: inline-block; margin-top: 12px; color: var(--dark); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 0.16em; }

@media (max-width: 767px) {
  .service-example-layout { grid-template-columns: minmax(0, 1fr); }
  .service-example-intro h2 { max-width: none; }
  .service-example-steps { grid-template-columns: minmax(0, 1fr); }
  .service-example-steps li { text-align: left; }
  .service-role-grid,
  .service-workflow-grid { grid-template-columns: minmax(0, 1fr); }
  .service-example-panel dl > div { grid-template-columns: minmax(0, 1fr); gap: 5px; }
}
@media (max-width: 380px) {
  .service-sample-metrics { grid-template-columns: minmax(0, 1fr); }
}

/* Booking targets clear the sticky header and keep their labels visible. */
#quote,
.bookkeeping-quote-form input,
.bookkeeping-quote-form select,
.bookkeeping-quote-form textarea { scroll-margin-top: 120px; }
.bookkeeping-quote-form input:focus,
.bookkeeping-quote-form select:focus,
.bookkeeping-quote-form textarea:focus { outline: 2px solid var(--dark); outline-offset: 2px; border-color: var(--dark); }

/* Reuse the homepage service icons beside each service-page eyebrow. */
.service-hero-copy > .service-hero-eyebrow { display: flex; align-items: center; gap: 10px; }
.service-hero-eyebrow .service-hero-icon { flex: 0 0 22px; width: 22px; height: 22px; color: var(--accent-on-dark); }

/* Static workflow cards follow the homepage card-and-connector pattern. */
.process-list.service-workflow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.service-workflow > li {
  position: relative;
  min-width: 0;
  padding: 28px 24px;
  border: 1px solid var(--border-cool);
  border-radius: 10px;
  background: var(--surface);
  cursor: default;
}
.service-workflow > li::before { content: none; }
.service-workflow-number {
  position: absolute;
  top: 32px;
  right: 24px;
  color: var(--dark);
  font-family: var(--heading-font);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.service-workflow-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border: 1px solid var(--border-cool);
  border-radius: 50%;
  color: var(--dark);
}
.service-workflow-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-workflow > li h3 { color: var(--dark-footer); font-size: 21px; }
.service-workflow > li p { color: var(--muted); font-size: 15px; }
.service-workflow-arrow { position: absolute; z-index: 1; top: 52px; right: -28px; width: 28px; height: 2px; background: var(--accent); }
.service-workflow-arrow::after { content: ''; position: absolute; top: -4px; right: 5px; width: 10px; height: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }

/* A flat ordered cadence with small decorative connectors. */
.service-example-panel .service-example-steps { display: flex; align-items: center; gap: 20px; margin: 24px 0 0; padding: 0; list-style: none; }
.service-example-panel .service-example-steps li { position: relative; flex: 1 1 0; min-width: 0; margin: 0; padding: 0; background: none; border-radius: 0; color: var(--dark-footer); font-size: 13px; font-weight: 700; line-height: 1.4; text-align: center; cursor: default; overflow-wrap: anywhere; }
.service-cadence-arrow { position: absolute; top: calc(50% - 1px); right: -18px; width: 16px; height: 1px; background: var(--accent); }
.service-cadence-arrow::after { content: ''; position: absolute; top: -3px; right: 1px; width: 7px; height: 7px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); transform: rotate(45deg); }
.service-cycle-return { display: inline-block; margin-right: 8px; color: var(--dark); font-size: 20px; line-height: 1; vertical-align: -2px; }

/* The existing portrait supports the controller testimonial without new copy. */
.service-testimonial-with-portrait { display: grid; grid-template-columns: 152px minmax(0, 1fr); align-items: center; gap: 32px; padding-left: 28px; }
.service-testimonial-with-portrait::before { content: none; }
.service-testimonial-portrait { display: block; width: 100%; height: auto; border-radius: 8px; }

@media (max-width: 767px) {
  .bookkeeping-quote-form input,
  .bookkeeping-quote-form select,
  .bookkeeping-quote-form textarea { scroll-margin-top: 150px; }
  .process-list.service-workflow { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .service-workflow-arrow { top: auto; right: auto; bottom: -24px; left: calc(50% - 1px); width: 2px; height: 24px; }
  .service-workflow-arrow::after { top: auto; right: -4px; bottom: 5px; transform: rotate(135deg); }
  .service-testimonial-with-portrait { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-left: 28px; }
  .service-testimonial-portrait { width: 120px; }
}
@media (max-width: 639px) {
  .service-example-panel .service-example-steps { flex-direction: column; align-items: flex-start; gap: 22px; }
  .service-example-panel .service-example-steps li { flex: none; text-align: left; }
  .service-cadence-arrow { top: auto; right: auto; bottom: -20px; left: 7px; width: 1px; height: 16px; }
  .service-cadence-arrow::after { top: auto; right: -3px; bottom: 1px; transform: rotate(135deg); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
