/* ==========================================================================
   Onsite Services — Plans & Pricing — Injury Care Associates
   Scoped under .onsite-plans. Tokens map to the site's Bootstrap custom
   properties; hex fallbacks are the live values so the page works standalone.
   Shares the visual system of css/onsite.css (overview page).
   ========================================================================== */

.onsite-plans {
  --op-primary: var(--bs-primary-hex, #0072bc);
  --op-primary-dark: #005b96;
  --op-navy: var(--bs-tertiary-hex, #1e2d3b);
  --op-light: var(--bs-light-hex, #f2f8fc);
  --op-ink: var(--bs-heading-color-hex, #212124);
  --op-body: #495356;
  --op-line: var(--bs-secondary-border-hex, #e7e7e7);
  --op-accent: #80b7e3;
  --op-pale: #dbe7f0;
  --op-warning: var(--bs-warning-hex, #ffd240);
  --op-radius: var(--bs-border-radius, 10px);
  --op-heading: 'Catamaran', sans-serif;
  --op-body-font: 'Nunito Sans', system-ui, sans-serif;

  font-family: var(--op-body-font);
  color: var(--op-ink);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.onsite-plans *, .onsite-plans *::before, .onsite-plans *::after { box-sizing: border-box; }
.onsite-plans img { max-width: 100%; }
.onsite-plans a:not(.op-btn) { color: var(--op-navy); }
.onsite-plans a:not(.op-btn):hover { color: var(--op-primary); }

.op-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.op-sec { border-bottom: 1px solid var(--op-line); }
.op-sec > .op-wrap { padding-top: 64px; padding-bottom: 64px; }
.op-sec--white { background: #fff; }
.op-sec--light { background: var(--op-light); }
.op-sec--navy { background: var(--op-navy); color: #fff; border-bottom: 0; }

/* ---------- type ---------- */
.op-kicker { font-family: var(--op-heading); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--op-primary); margin: 0 0 10px; }
.op-kicker--accent { color: var(--op-accent); }
.op-kicker--navy { color: var(--op-navy); margin-bottom: 8px; }
.op-h1 { font-family: var(--op-heading); font-weight: 800; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 18px; max-width: 16ch; text-wrap: balance; }
.op-h2 { font-family: var(--op-heading); font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.015em; margin: 0; }
.op-h2--gap { margin-bottom: 14px; max-width: 18ch; }
.op-h2--tight { margin-bottom: 10px; }
.op-h2--max { max-width: 18ch; }
.op-h3 { font-family: var(--op-heading); font-weight: 800; margin: 0; }
.op-sub { font-size: 18px; line-height: 1.55; color: var(--op-body); margin: 0; }
.op-sub--md { font-size: 17px; }
.op-sub--sm { font-size: 15px; }
.op-sub--invert { color: var(--op-pale); }
.op-sub--ink { color: var(--op-ink); }
.op-head { max-width: 60ch; }
.op-head--gap { margin-bottom: 30px; }
.op-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 56px; }
.op-split--start { align-items: start; }
.op-split--end { align-items: end; margin-bottom: 30px; gap: 32px 56px; }
.op-max46 { max-width: 46ch; }
.op-max56 { max-width: 56ch; }
.op-max80 { max-width: 80ch; }
.op-note { font-size: 15px; line-height: 1.55; color: var(--op-body); margin: 18px 0 0; max-width: 80ch; }

/* ---------- buttons ---------- */
.op-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--op-body-font); font-weight: 700; font-size: 16px; padding: 13px 24px; border-radius: var(--op-radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .18s, border-color .18s, color .18s; }
.op-btn--lg { font-size: 17px; padding: 15px 26px; }
.op-btn--primary { background: var(--op-primary); border-color: var(--op-primary); color: #fff; }
.op-btn--primary:hover { background: var(--op-primary-dark); border-color: var(--op-primary-dark); color: #fff; }
.op-btn--shadow { box-shadow: 0 6px 18px rgba(0,114,188,.35); }
.op-btn--outline-navy { background: transparent; border-color: var(--op-navy); color: var(--op-navy); }
.op-btn--outline-navy:hover { background: var(--op-navy); color: #fff; }
.op-btn--outline-white { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; padding-left: 18px; padding-right: 18px; }
.op-btn--outline-white:hover { border-color: var(--op-warning); color: var(--op-warning); }
.op-btn--ghost { background: #fff; border: 1px solid var(--op-line); color: var(--op-navy); font-size: 15px; padding: 12px 18px; flex: none; }
.op-btn--ghost:hover { border-color: var(--op-primary); color: var(--op-primary); }
.op-btn--block { display: flex; width: 100%; }
.op-btnrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- hero ---------- */
.op-hero { position: relative; background: var(--op-navy); color: #fff; overflow: hidden; }
.op-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.op-hero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,45,59,.97) 0%, rgba(30,45,59,.88) 45%, rgba(30,45,59,.4) 100%); }
.op-hero__inner { position: relative; padding-top: 80px; padding-bottom: 88px; }
.op-hero__copy { max-width: 640px; }
.op-hero__crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--op-heading); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--op-accent); margin-bottom: 14px; }
.op-hero__lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--op-pale); max-width: 52ch; margin: 0 0 28px; }
.op-hero__crumb, .op-h1, .op-hero__lede, .op-hero .op-btnrow { animation: op-hero-in .7s cubic-bezier(.2,.7,.3,1) both; }
.op-h1 { animation-delay: .08s; } .op-hero__lede { animation-delay: .16s; } .op-hero .op-btnrow { animation-delay: .24s; }
@keyframes op-hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- plans ---------- */
.op-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; align-items: stretch; }
.op-plan { position: relative; background: #fff; border: 1px solid var(--op-line); border-radius: 14px; padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 14px; }
.op-plan--featured { border: 2px solid var(--op-primary); }
.op-plan__badge { position: absolute; top: -13px; left: 28px; font-family: var(--op-heading); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--op-navy); background: var(--op-warning); padding: 5px 12px; border-radius: 6px; }
.op-plan__name { font-family: var(--op-heading); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--op-body); margin: 0; }
.op-plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; }
.op-plan__price b { font-family: var(--op-heading); font-weight: 800; font-size: 48px; line-height: 1; color: var(--op-navy); }
.op-plan__price span { font-size: 16px; color: var(--op-body); }
.op-plan__tag { font-size: 16px; line-height: 1.5; color: var(--op-body); margin: 0; }
.op-plan .op-btn { margin-top: auto; }
.op-checks { margin: 4px 0 0; padding: 16px 0 0; border-top: 1px solid var(--op-line); list-style: none; display: flex; flex-direction: column; gap: 9px; }
.op-checks li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--op-ink); }
.op-checks li::before { content: "✓"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--op-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; margin-top: 2px; }
.op-checks--navy li::before { background: var(--op-navy); }

/* ---------- how billing works ---------- */
.op-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.op-step { border: 1px solid var(--op-line); border-radius: var(--op-radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.op-step__n { font-family: var(--op-heading); font-weight: 800; font-size: 26px; line-height: 1; color: var(--op-primary); }
.op-step__title { font-size: 19px; line-height: 1.2; }
.op-step__body { font-size: 15px; line-height: 1.5; color: var(--op-body); margin: 0; }

/* ---------- coverage (navy) ---------- */
.op-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.op-stat { border: 1px solid rgba(255,255,255,.18); border-radius: var(--op-radius); padding: 18px 20px; }
.op-stat__label, .op-label { font-family: var(--op-heading); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--op-accent); margin: 0 0 6px; }
.op-label { margin-bottom: 12px; }
.op-stat__value { font-family: var(--op-heading); font-weight: 800; font-size: 22px; line-height: 1.15; margin-bottom: 4px; }
.op-stat__note { font-size: 14px; line-height: 1.45; color: var(--op-pale); }
.op-sec--navy .op-sub--invert { margin-bottom: 24px; }
.op-area__lede { font-size: 16px; line-height: 1.55; color: var(--op-pale); margin: 0 0 16px; }
.op-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 20px; }
.op-list li { display: flex; gap: 10px; font-size: 16px; line-height: 1.45; color: var(--op-light); }
.op-list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--op-accent); margin-top: 9px; }
.op-area__fine { font-size: 14px; line-height: 1.5; color: var(--op-pale); margin: 20px 0 0; }
.op-area__fine strong { color: #fff; }

/* ---------- agreement summary ---------- */
.op-sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 32px; margin-bottom: 28px; }
.op-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.op-term { background: var(--op-light); border-radius: var(--op-radius); padding: 20px 22px; }
.op-term__title { font-size: 17px; line-height: 1.25; margin-bottom: 6px; }
.op-term__body { font-size: 15px; line-height: 1.5; color: var(--op-body); margin: 0; }

/* ---------- final CTA (yellow) ---------- */
.op-cta { background: var(--op-warning); overflow: hidden; }
.op-cta__inner { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; justify-content: space-between; }
.op-cta__copy { flex: 1 1 380px; min-width: 0; }
.op-cta__copy .op-h2 { color: var(--op-navy); margin-bottom: 12px; max-width: 22ch; }
.op-cta__actions { flex: 0 1 300px; min-width: 240px; display: flex; flex-direction: column; gap: 8px; }

@media (prefers-reduced-motion: reduce) { .onsite-plans *, .onsite-plans *::before, .onsite-plans *::after { animation: none !important; transition: none !important; } }

/* ==========================================================================
   MODX build additions (2026-10-06) — docs/pages/plans.md
   ========================================================================== */

/* Breadcrumb is a link on the live page; the global .onsite-plans a rule would
   paint it navy on the navy hero. */
.onsite-plans .op-hero__crumb a { color: inherit; text-decoration: none; }
.onsite-plans .op-hero__crumb a:hover { color: var(--op-warning); }

/* Richtext TVs arrive wrapped in <p>; the wrappers carry the design's spacing. */
.op-sub > p, .op-note > p, .op-area__lede > p { margin: 0; }
.op-sub > p + p, .op-note > p + p, .op-area__lede > p + p { margin-top: .75em; }

/* Billing steps: <ol> of step-migx rows, numbered 01-04 by counter. */
.op-steps { list-style: none; margin: 0; padding: 0; counter-reset: op-step; }
.op-step { counter-increment: op-step; }
.op-step__n::before { content: counter(op-step, decimal-leading-zero); }

/* Plan-card button and checks follow the featured flag (cta-card-migx badge). */
.op-plan__btn { background: transparent; border-color: var(--op-navy); color: var(--op-navy); }
.op-plan__btn:hover { background: var(--op-navy); color: #fff; }
.op-plan--featured .op-plan__btn { background: var(--op-primary); border-color: var(--op-primary); color: #fff; }
.op-plan--featured .op-plan__btn:hover { background: var(--op-primary-dark); border-color: var(--op-primary-dark); color: #fff; }
.op-plan:not(.op-plan--featured) .op-checks li::before { background: var(--op-navy); }
.op-checks p { margin: 0; }

/* Phones: buttons may wrap rather than overflow the 16px gutter. */
@media (max-width: 575.98px) {
  .op-wrap { padding: 0 16px; }
  .op-btn { white-space: normal; text-align: center; }
  .op-btnrow .op-btn { width: 100%; }
}

/* The theme colours h1-h3 with --bs-heading-color, which beats the section's
   inherited white. Headings on the two navy bands are set explicitly. */
.onsite-plans .op-hero .op-h1,
.onsite-plans .op-sec--navy .op-h2 { color: #fff; }

/* Breadcrumb link: 44px tap target without moving the line. */
.onsite-plans .op-hero__crumb a { display: inline-block; padding: 12px 0; margin: -12px 0; }
