/* JBMED website. Colours follow the company letterhead green. */
:root {
  --green-900: #22382A;
  --green-700: #3A5B3E;
  --green-600: #456B47;
  --sage-200: #DCE8DD;
  --sage-100: #EEF4EE;
  --paper: #FCFDFB;
  --ink: #1D2A20;
  --muted: #56645A;
  --rule: #CFDCD0;
  --amber: #A8661B;
  --serif: 'IBM Plex Serif', Georgia, serif;
  --sans: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 1.0625rem; line-height: 1.65; }
h1, h2, h3, .h4, .h5 { font-family: var(--serif); color: var(--green-900); font-weight: 600; letter-spacing: -0.01em; }
a { color: var(--green-700); }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--green-900); color: #fff; padding: .5rem 1rem; z-index: 2000; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 1030; }
.navbar { padding: .75rem 0; }
.brand-text { font-family: var(--serif); font-weight: 600; color: var(--green-900); font-size: 1.15rem; }
.nav-link { color: var(--ink); font-weight: 500; padding: .5rem .75rem !important; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--green-700); }
.nav-link.active { color: var(--green-900); border-bottom-color: var(--green-600); }

/* Buttons */
.btn-brand { background: var(--green-600); border: 1px solid var(--green-600); color: #fff; font-weight: 500; }
.btn-brand:hover, .btn-brand:focus { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.btn-outline-brand { border: 1px solid var(--green-600); color: var(--green-700); font-weight: 500; background: transparent; }
.btn-outline-brand:hover { background: var(--sage-100); color: var(--green-900); }
.text-link { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Hero */
.hero { padding: 5rem 0 4rem; }
.hero-kicker { color: var(--amber); font-weight: 600; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.1; margin-bottom: 1.25rem; max-width: 18ch; }
.hero-lead { color: var(--muted); max-width: 60ch; }

/* The case track: one dispute moving through its stages */
.case-track { background: var(--green-900); color: #F1F6F1; border-radius: 6px; padding: 2rem 2rem 1.5rem; }
.case-track-title { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 1.25rem; color: #fff; }
.case-track-list { list-style: none; padding: 0; margin: 0; position: relative; }
.case-track-list::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: rgba(220,232,221,.25); }
.case-track-list li { position: relative; display: grid; grid-template-columns: 16px 1fr; column-gap: 1rem; padding: .45rem 0; opacity: .55; transition: opacity .4s ease; }
.case-track-list li.done, .case-track-list li.current { opacity: 1; }
.case-track-list .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--green-900); border: 2px solid var(--sage-200); margin-top: 5px; transition: background .4s ease; }
.case-track-list li.done .dot { background: var(--sage-200); }
.case-track-list li.current .dot { background: #E9B46A; border-color: #E9B46A; }
.case-track-list .stage { font-weight: 600; grid-column: 2; }
.case-track-list .note { grid-column: 2; font-size: .9rem; color: #C3D3C5; }

/* Ledger of key figures */
.ledger { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--sage-100); }
.ledger-row { margin: 0; }
.ledger-item { padding: 1.75rem 1.25rem; border-right: 1px solid var(--rule); }
.ledger-item:last-child { border-right: 0; }
.ledger-item dt { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--green-900); font-weight: 600; line-height: 1.1; }
.ledger-item dd { margin: .35rem 0 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 991.98px) { .ledger-item:nth-child(2) { border-right: 0; } .ledger-item:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }

/* Sections */
.section { padding: 5rem 0; }
.section-tint { background: var(--sage-100); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1.25rem; }
.section-intro { color: var(--muted); max-width: 60ch; margin-bottom: 2rem; }
.body-lg { font-size: 1.1rem; max-width: 65ch; }
.small-note { color: var(--muted); font-size: .9rem; }
.page-head { padding: 4rem 0 3rem; border-bottom: 1px solid var(--rule); background: var(--sage-100); }
.page-title { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: .75rem; }
.page-lead { color: var(--muted); max-width: 62ch; }

/* Services */
.service-main { border-left: 4px solid var(--green-600); padding: .25rem 0 .25rem 1.5rem; }
.service-main h3 { font-size: 1.6rem; }
.service-main p { font-size: 1.1rem; max-width: 60ch; }
.service-side { border-top: 1px solid var(--rule); padding-top: 1.25rem; height: 100%; }
.service-side h3 { font-size: 1.25rem; }
.service-side p { color: var(--muted); margin-bottom: 0; }

/* Tables */
.compare-table, .facts-table { --bs-table-bg: transparent; margin-bottom: .75rem; }
.compare-table th, .compare-table td, .facts-table th, .facts-table td { padding: .85rem .75rem; border-color: var(--rule); }
.compare-table thead th { font-weight: 600; color: var(--green-900); border-bottom: 2px solid var(--green-600); }
.compare-table td:last-child { font-weight: 600; color: var(--green-900); }
.facts-table th { color: var(--muted); font-weight: 500; width: 40%; }

/* Screenshots */
.shot { margin: 0; }
.shot img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 18px 40px -24px rgba(34,56,42,.45); }
.shot figcaption { color: var(--muted); font-size: .92rem; margin-top: .75rem; }
.shot-open { padding: 0; border: 0; background: none; width: 100%; cursor: zoom-in; border-radius: 6px; }

/* Flow and steps (real sequences) */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: flow; }
.flow li { counter-increment: flow; padding: 1.5rem 1.25rem; border-top: 3px solid var(--green-600); position: relative; }
.flow li + li { border-left: 1px solid var(--rule); }
.flow li::before { content: counter(flow); font-family: var(--serif); color: var(--amber); font-size: 1.4rem; font-weight: 600; display: block; margin-bottom: .25rem; }
.flow h3 { font-size: 1.15rem; }
.flow p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 991.98px) { .flow { grid-template-columns: 1fr; } .flow li + li { border-left: 0; } }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 3rem 1fr; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(st); grid-row: span 2; font-family: var(--serif); font-size: 1.6rem; color: var(--green-600); font-weight: 600; line-height: 1.2; }
.steps h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--muted); }

/* Stage strip on DisputeOS page */
.stage-strip { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.stage-strip li { background: var(--green-900); color: #fff; padding: .45rem 1rem; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.stage-strip li:last-child { background: var(--amber); }

/* Fixes accordion */
.fixes .accordion-item { border: 0; border-bottom: 1px solid var(--rule); background: transparent; }
.fixes .accordion-button { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--green-900); background: transparent; padding: 1.25rem 0; box-shadow: none; }
.fixes .accordion-button:not(.collapsed) { color: var(--green-900); }
.fixes .accordion-body { padding: 0 0 1.75rem; }
.fix-num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--green-600); color: #fff; font-size: 1rem; margin-right: 1rem; flex-shrink: 0; }
.ba-label { font-weight: 600; color: var(--muted); margin-bottom: .5rem; }
.ba-label.ba-now { color: var(--green-700); }
.ba-list { padding-left: 1.2rem; margin: 0; }
.ba-list li { margin-bottom: .4rem; }
.ba-list.before li { color: var(--muted); }

/* About */
.md-quote { border-left: 4px solid var(--green-600); padding: .5rem 0 .5rem 2rem; margin: 0; }
.md-quote p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.7; color: var(--ink); }
.md-quote footer { margin-top: 1.5rem; display: flex; flex-direction: column; }
.md-quote footer span { color: var(--muted); font-size: .95rem; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.timeline li { border-top: 3px solid var(--sage-200); padding-top: 1.25rem; }
.timeline li:last-child { border-top-color: var(--green-600); }
.tl-date { color: var(--amber); font-weight: 600; font-size: .95rem; }
.timeline h3 { font-size: 1.2rem; margin: .35rem 0; }
.timeline p { color: var(--muted); margin: 0; }
@media (max-width: 991.98px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .timeline { grid-template-columns: 1fr; } }
.person { border-top: 1px solid var(--rule); padding-top: 1.25rem; height: 100%; }
.person h3 { font-size: 1.25rem; margin-bottom: .1rem; }
.person .role { color: var(--amber); font-weight: 600; margin-bottom: .5rem; }
.person p:last-child { color: var(--muted); margin: 0; }

/* Contact */
.contact-form .form-control, .contact-form .form-select { border-color: var(--rule); padding: .7rem .85rem; }
.contact-form .form-control:focus, .contact-form .form-select:focus { border-color: var(--green-600); box-shadow: 0 0 0 .2rem rgba(69,107,71,.2); }
.optional { color: var(--muted); font-weight: 400; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-card { background: var(--sage-100); border-radius: 6px; padding: 2rem; }
.contact-list dt { color: var(--muted); font-weight: 500; font-size: .9rem; margin-top: 1rem; }
.contact-list dd { margin: 0; font-weight: 500; }
.map-wrap { margin-top: 1.5rem; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; border: 1px solid var(--rule); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* CTA band */
.cta-band { background: var(--green-900); color: #E6EFE7; padding: 3.5rem 0; }
.cta-title { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* Footer */
.site-footer { background: #17261C; color: #C4D2C6; padding: 4rem 0 2rem; font-size: .95rem; }
.footer-logo { background: #fff; border-radius: 4px; padding: 2px; }
.footer-brand { font-family: var(--serif); color: #fff; font-weight: 600; }
.footer-head { font-family: var(--sans); font-size: 1rem; color: #fff; font-weight: 600; margin-bottom: .75rem; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: #C4D2C6; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-note { max-width: 46ch; }
.footer-legal { border-top: 1px solid rgba(196,210,198,.2); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; color: #9DB0A0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .case-track-list li, .case-track-list .dot { transition: none; }
}
