/* Readability adjustments shared by every Easeline VA page. */
html { font-size: 17px; -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body { font-size: 17px; font-weight: 500; line-height: 1.7; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
p, li, label, summary { font-weight: 500; }
p { line-height: 1.7; }

/* Dark text for legibility on light sections. */
body,
body * { color: #000 !important; }

/* Keep strong contrast on dark sections and primary buttons. */
footer,
footer * ,
.medical,
.medical *,
.about-values,
.about-values *,
.contact,
.contact h1,
.contact h2,
.contact h3,
.contact p,
.contact .eyebrow,
.contact .contact-note,
.btn:not(.btn-outline),
.btn:not(.btn-outline) * { color: #fff !important; }

/* The contact CTA uses a white surface. */
.contact .btn,
.contact .btn * { color: #000 !important; }

/* Restore Easeline VA brand accents while keeping body copy black. */
.mark { background: transparent !important; }
h1, h2, h3, .brand { color: #0B2454 !important; }
.eyebrow { color: #008C9D !important; }
.eyebrow::before { background: #C94A00 !important; }
h1 span, .accent, .service-learn, .service-icon, .service-detail-check,
.owner-initials, .values b, .promises b, .metric-card strong,
.num, .tail { color: #C94A00 !important; }
.pill, .stepno { color: #008C9D !important; }
.step:nth-child(3) .stepno { color: #fff !important; background: #C94A00 !important; }
.float i { color: #008C9D !important; }
.float.f2 i { color: #C94A00 !important; }
.footer-col h3 { color: #FF7A1A !important; }
.footer-brandname b { color: #102438 !important; }

/* Keep the conversation widget readable on its navy header despite global text overrides. */
.eva-chat-title { color: #fff !important; }
.eva-chat-subtitle { color: #dbe8f4 !important; }
.eva-chat-close { color: #fff !important; }
.eva-chat-mark { background: transparent !important; }

/* High-contrast text throughout the chat, including user questions on navy bubbles. */
.eva-chat-dialog .eva-chat-title { color: #fff !important; }
.eva-chat-dialog .eva-chat-subtitle { color: #dbe8f4 !important; }
.eva-chat-dialog .eva-chat-close { color: #fff !important; }
.eva-chat-dialog .eva-chat-bubble { color: #172b3a !important; font-size: .96rem; }
.eva-chat-dialog .eva-chat-bubble p { color: inherit !important; }
.eva-chat-dialog .eva-chat-row.user .eva-chat-bubble,
.eva-chat-dialog .eva-chat-row.user .eva-chat-bubble p { color: #fff !important; }
.eva-chat-dialog .eva-chat-email { color: #006b7c !important; }
.eva-chat-dialog .eva-chat-choice { color: #064d60 !important; font-size: .84rem; }
.eva-chat-dialog .eva-chat-input { color: #172b3a !important; }
.eva-chat-dialog .eva-chat-input::placeholder { color: #657786 !important; }
.eva-chat-dialog .eva-chat-send { color: #fff !important; }
.eva-chat-dialog .eva-chat-footnote { color: #405466 !important; }

/* Mission and Vision cards use a light background inside the dark section. */
.about-values .mv h3 { color: #0B2454 !important; }
.about-values .mv p { color: #334155 !important; }

/* Center the final Medical Virtual Assistant card beneath Accounting & Bookkeeping. */
.services-list .service-grid > .service:last-child,
.home-services .home-service-grid > .service:last-child { grid-column: 2; }
@media (max-width: 740px) {
  .services-list .service-grid > .service:last-child,
  .home-services .home-service-grid > .service:last-child { grid-column: auto; }
}

/* Center the Medical Virtual Assistant role beneath Accounting on the About page. */
.about-role-grid > .about-role:last-child { grid-column: 2; }
@media (max-width: 740px) {
  .about-role-grid > .about-role:last-child { grid-column: auto; }
}

/* Smooth, accessible moving benefits strip on the homepage. */
.home-trust { overflow: hidden; }
.home-trust .trust-window { width: 100%; overflow: hidden; }
.home-trust .trust-track {
  display: flex;
  width: max-content;
  animation: easeline-trust-scroll 30s linear infinite;
  will-change: transform;
}
.home-trust .trust-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  padding-right: 22px;
  white-space: nowrap;
}
.home-trust .trust-group p { margin: 0; }
.home-trust:hover .trust-track,
.home-trust:focus-within .trust-track { animation-play-state: paused; }
@keyframes easeline-trust-scroll {
  to { transform: translateX(-16.6666667%); }
}
@media (max-width: 740px) {
  .home-trust .trust-group { gap: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-trust .trust-track { width: 100%; justify-content: center; animation: none; }
  .home-trust .trust-group[aria-hidden="true"] { display: none; }
  .home-trust .trust-group { flex-wrap: wrap; justify-content: center; white-space: normal; }
}
