/* ==========================================================================
   Home page — Injury Care Associates
   Scoped under .home. Tokens map to the site's Bootstrap custom properties;
   hex fallbacks are the live values so the page also works standalone.
   ========================================================================== */

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

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

.home-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.home-sec { border-bottom: 1px solid var(--home-line); }
.home-sec > .home-wrap { padding-top: 76px; padding-bottom: 76px; }
.home-sec--white { background: #fff; }
.home-sec--light { background: var(--home-light); }

/* ---------- type ---------- */
.home-h1 { font-family: var(--home-heading); font-weight: 800; font-size: clamp(40px, 6vw, 74px); line-height: .98; letter-spacing: -.025em; margin: 0 0 20px; max-width: 14ch; text-wrap: balance; }
.home-h2 { font-family: var(--home-heading); font-weight: 800; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 12px; }
.home-h2--xl { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.02; letter-spacing: -.02em; margin: 0; max-width: 16ch; }
.home-kicker { font-family: var(--home-heading); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--home-primary); margin: 0 0 10px; }
.home-kicker--yellow { color: var(--home-warning); }
.home-sub { font-size: 18px; line-height: 1.55; color: var(--home-body); margin: 0; }
.home-sub--lead { font-size: 17.5px; line-height: 1.6; margin-bottom: 28px; }
.home-sub--invert { font-size: 17.5px; color: var(--home-light); margin-bottom: 26px; max-width: 52ch; }
.home-head { max-width: 60ch; margin-bottom: 36px; }

/* ---------- buttons ---------- */
.home-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--home-body-font); font-weight: 700; font-size: 16px; padding: 14px 24px; border-radius: var(--home-radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .18s, border-color .18s, color .18s; }
.home-btn--lg { font-size: 17px; padding: 16px 28px; }
.home-btn--primary { background: var(--home-primary); border-color: var(--home-primary); color: #fff; box-shadow: 0 6px 18px rgba(0,114,188,.35); }
.home-btn--primary:hover { background: var(--home-primary-dark); border-color: var(--home-primary-dark); color: #fff; }
.home-btn--yellow { background: var(--home-warning); border-color: var(--home-warning); color: var(--home-ink); }
.home-btn--yellow:hover { background: var(--home-warning-dark); border-color: var(--home-warning-dark); color: var(--home-ink); }
.home-btn--ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.home-btn--ghost:hover { border-color: #fff; color: #fff; }
.home-btn--outline { background: #fff; border-color: var(--home-line); color: var(--home-navy); padding: 14px 20px; }
.home-btn--outline:hover { border-color: var(--home-navy); color: var(--home-navy); }
.home-btn--round { border-radius: 999px; font-weight: 600; font-size: 17px; padding: 13px 22px; box-shadow: none; }
.home-btn--outline-blue { background: transparent; border-color: var(--home-primary); color: var(--home-primary); }
.home-btn--outline-blue:hover { background: var(--home-primary); color: #fff; }
.home-btnrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- hero ---------- */
.home-hero { position: relative; background: var(--home-navy); color: #fff; overflow: hidden; }
.home-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; opacity: .42; }
.home-hero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, #1e2d3b 30%, rgba(30,45,59,.82) 62%, rgba(30,45,59,.35) 100%); }
.home-hero__inner { position: relative; padding-top: 80px; padding-bottom: 150px; }
.home-hero__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.home-hero__hours { font-size: 15px; color: var(--home-accent); font-weight: 600; }
.home-hero__lede { font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: var(--home-light); max-width: 54ch; margin: 0 0 30px; }

.home-status { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); color: var(--home-light); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 7px 13px; border-radius: 999px; }
.home-status__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.home-status.is-open { background: var(--home-warning); color: var(--home-ink); }

.home-play { display: inline-flex; align-items: center; gap: 12px; color: #fff; background: none; border: 0; font: inherit; font-weight: 700; font-size: 17px; padding: 10px 12px; cursor: pointer; }
.home-play:hover { color: var(--home-warning); }
.home-play__disc { width: 44px; height: 44px; border-radius: 50%; background: var(--home-warning); display: inline-flex; align-items: center; justify-content: center; animation: home-pulse 2.4s ease-out infinite; }
.home-play__tri { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent var(--home-navy); margin-left: 3px; }
@keyframes home-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,210,64,.6); } 70% { box-shadow: 0 0 0 12px rgba(255,210,64,0); } 100% { box-shadow: 0 0 0 0 rgba(255,210,64,0); } }

/* ---------- video modal ---------- */
.home-modal { position: fixed; inset: 0; z-index: 1100; background: rgba(30,45,59,.92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.home-modal[hidden] { display: none; }
.home-modal__frame { position: relative; width: min(1100px, 100%); aspect-ratio: 16/9; background: #000; border-radius: var(--home-radius); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.home-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.home-modal__close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--home-warning); color: var(--home-ink); border: 0; font-size: 26px; line-height: 1; cursor: pointer; font-weight: 700; }
.home-modal__close:hover { background: var(--home-warning-dark); }
.home-modal-open { overflow: hidden; }

/* ---------- audience router ---------- */
.home-router { background: var(--home-light); border-bottom: 1px solid var(--home-line); }
.home-router__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: -100px; position: relative; padding-bottom: 56px; }
.home-route { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--home-line); border-top: 5px solid var(--home-primary); border-radius: var(--home-radius); padding: 26px 26px 24px; text-decoration: none; color: var(--home-ink); box-shadow: 0 10px 30px rgba(30,45,59,.12); transition: transform .2s, box-shadow .2s; }
.home-route:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(30,45,59,.18); color: var(--home-ink); }
.home-route--worker { border-top-color: var(--home-danger); }
.home-route--exam { border-top-color: var(--home-warning); }
.home-route__kicker { font-family: var(--home-heading); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--home-primary); }
.home-route--worker .home-route__kicker { color: var(--home-danger); }
.home-route--exam .home-route__kicker { color: #a67c00; }
.home-route__title { font-family: var(--home-heading); font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--home-navy); }
.home-route__body { font-size: 15.5px; line-height: 1.5; color: var(--home-body); }
.home-route__link { font-weight: 700; color: var(--home-primary); margin-top: 6px; }

/* ---------- logo marquees ---------- */
.home-logos--navy { background: var(--home-navy); color: #fff; }
.home-logos__row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; padding-top: 36px; padding-bottom: 36px; overflow: hidden; }
.home-logos__row--partners { padding-top: 0; padding-bottom: 56px; }
.home-logos__label { font-family: var(--home-heading); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--home-accent); flex: none; }
.home-logos__label--muted { color: var(--home-body); }
.home-marquee { flex: 1 1 300px; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.home-marquee__track { display: flex; align-items: center; gap: 56px; width: max-content; padding-right: 56px; animation: home-marquee var(--home-marquee-dur, 40s) linear infinite; }
.home-marquee__track img { width: auto; flex: none; }
.home-logos--navy .home-marquee__track { opacity: .9; }
@keyframes home-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- services ---------- */
.home-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.home-svc { background: #fff; border: 1px solid var(--home-line); border-radius: var(--home-radius); padding: 28px; }
.home-svc__title { font-family: var(--home-heading); font-weight: 800; font-size: 23px; line-height: 1.15; margin: 0 0 8px; }
.home-svc__title a { color: var(--home-navy); text-decoration: none; }
.home-svc__title a:hover { color: var(--home-primary); }
.home-svc__body { font-size: 15.5px; line-height: 1.5; color: var(--home-body); margin: 0 0 16px; }
.home-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.home-chip { font-size: 14px; font-weight: 700; color: var(--home-navy); text-decoration: none; background: var(--home-light); border: 1px solid var(--home-line); padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.home-chip:hover { border-color: var(--home-primary); color: var(--home-primary); }
.home-svc--onsite { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; background: var(--home-primary); border-color: var(--home-primary); color: #fff; text-decoration: none; }
.home-svc--onsite:hover { background: var(--home-primary-dark); border-color: var(--home-primary-dark); color: #fff; }
.home-svc--onsite .home-svc__title { color: #fff; }
.home-svc--onsite .home-svc__body { color: #dcecf8; margin: 0; }
.home-svc__link { font-weight: 700; color: var(--home-warning); }

/* ---------- locations (photo band) ---------- */
.home-loc { position: relative; background: var(--home-navy); color: #fff; overflow: hidden; }
.home-loc__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.home-loc__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,45,59,.35) 0%, rgba(30,45,59,.92) 70%); }
.home-loc__inner { position: relative; padding-top: 110px; padding-bottom: 56px; }
.home-loc__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: 36px; }
.home-loc__aside { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 16px; color: var(--home-light); }
.home-clinics { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: rgba(255,255,255,.18); border-radius: var(--home-radius); overflow: hidden; }
.home-clinic { background: rgba(30,45,59,.85); backdrop-filter: blur(4px); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.home-clinic__name { font-family: var(--home-heading); font-weight: 800; font-size: 22px; line-height: 1.1; }
.home-clinic__addr { font-size: 14.5px; line-height: 1.45; color: var(--home-pale); }
.home-clinic__links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-weight: 700; font-size: 15px; }
.home-clinic__links a { text-decoration: none; white-space: nowrap; color: var(--home-accent); }
.home-clinic__links a:first-child { color: var(--home-warning); }
.home-clinic__links a:hover { color: #fff; }

/* ---------- two-column blocks ---------- */
.home-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: start; }
.home-two--center { align-items: center; }
.home-sticky { position: sticky; top: 20px; }

/* ---------- why ICA ---------- */
.home-why__media { position: relative; }
.home-why__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--home-radius); display: block; }
.home-why__tag { position: absolute; left: 20px; bottom: -22px; background: var(--home-warning); color: var(--home-ink); border-radius: var(--home-radius); padding: 14px 18px; font-family: var(--home-heading); font-weight: 800; font-size: 16px; line-height: 1.2; box-shadow: 0 8px 24px rgba(30,45,59,.18); }
.home-why__tag span { font-weight: 600; font-size: 14px; }
.home-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 18px 24px; border-top: 1px solid var(--home-line); padding-top: 24px; margin: 0 0 28px; }
.home-stats dd { font-family: var(--home-heading); font-weight: 800; font-size: clamp(30px, 3.4vw, 40px); line-height: 1; color: var(--home-primary); margin: 0; }
.home-stats dt { font-size: 14px; line-height: 1.35; color: var(--home-body); margin-top: 6px; }

/* ---------- onsite band ---------- */
.home-onsite { position: relative; background: var(--home-navy); color: #fff; overflow: hidden; }
.home-onsite__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.home-onsite__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,45,59,.4) 0%, #1e2d3b 55%); }
.home-onsite__inner { position: relative; padding-top: 72px; padding-bottom: 72px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.home-onsite .home-h2 { margin-bottom: 14px; }

/* ---------- employer risks ---------- */
.home-risks { display: flex; flex-direction: column; border-top: 1px solid var(--home-line); }
.home-risk { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; padding: 20px 4px; border-bottom: 1px solid var(--home-line); text-decoration: none; color: var(--home-ink); }
.home-risk:hover { background: var(--home-light); color: var(--home-ink); }
.home-risk b { display: block; font-family: var(--home-heading); font-weight: 700; font-size: 19px; line-height: 1.25; color: var(--home-navy); margin-bottom: 5px; }
.home-risk > span > span { display: block; font-size: 15.5px; line-height: 1.5; color: var(--home-body); }
.home-risk__arrow { color: var(--home-primary); font-weight: 700; padding-top: 2px; }

/* ---------- transportation band ---------- */
.home-transport { background: var(--home-warning); overflow: hidden; }
.home-transport__inner { max-width: 1320px; margin: 0 auto; padding: 40px 24px 0; display: flex; flex-wrap: wrap; gap: 28px 36px; align-items: center; }
.home-transport__art { flex: 0 1 240px; min-width: 170px; align-self: flex-end; margin-bottom: -40px; }
.home-transport__art img { width: 100%; display: block; }
.home-transport__copy { flex: 1 1 380px; min-width: 0; }
.home-transport__copy h2 { font-family: var(--home-heading); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; color: var(--home-primary); margin: 0 0 10px; max-width: 22ch; }
.home-transport__copy p { font-style: oblique; font-size: 16px; line-height: 1.5; color: var(--home-primary); margin: 0; max-width: 60ch; }
.home-transport__btns { flex: 0 1 300px; min-width: 240px; display: flex; flex-direction: column; gap: 8px; padding-bottom: 40px; }

/* ---------- resources ---------- */
.home-resources__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; padding-top: 64px; padding-bottom: 56px; }
.home-res { display: flex; justify-content: space-between; gap: 20px; align-items: center; background: var(--home-light); border: 1px solid var(--home-line); border-radius: var(--home-radius); padding: 24px 26px; text-decoration: none; color: var(--home-ink); }
.home-res:hover { border-color: var(--home-primary); color: var(--home-ink); }
.home-res b { display: block; font-family: var(--home-heading); font-weight: 800; font-size: 20px; color: var(--home-navy); margin-bottom: 4px; }
.home-res > span > span { display: block; font-size: 15px; line-height: 1.5; color: var(--home-body); }
.home-res__arrow { color: var(--home-primary); font-weight: 700; font-size: 22px; }

/* ---------- scroll reveal (fails open) ---------- */
html.js-reveal .home [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .55s cubic-bezier(.2,.7,.3,1), transform .55s cubic-bezier(.2,.7,.3,1); }
html.js-reveal .home [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
  html.js-reveal .home [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .home-modal, .home-play { display: none !important; }
  html.js-reveal .home [data-reveal] { opacity: 1 !important; transform: none !important; }
  .home-marquee__track { animation: none; }
}
@media (max-width: 640px) {
  .home-hero__inner { padding-top: 56px; padding-bottom: 130px; }
  .home-sec > .home-wrap { padding-top: 56px; padding-bottom: 56px; }
  .home-sticky { position: static; }
}

/* ---------------------------------------------------------------------------
   Gate 2 fix — anchor buttons inherited navy from `.home a`.
   `.home a { color: var(--home-navy) }` is (0,1,1); every `.home-btn--*`
   modifier is (0,1,0), so the link colour won on all nine anchor buttons.
   On the navy onsite band that made "Get started" navy-on-navy — invisible.
   Restated at (0,2,0). Appended, nothing above reordered.
   --------------------------------------------------------------------------- */
.home a.home-btn--primary,
.home a.home-btn--primary:hover,
.home a.home-btn--ghost,
.home a.home-btn--ghost:hover,
.home a.home-btn--outline-blue:hover { color: #fff; }
.home a.home-btn--yellow,
.home a.home-btn--yellow:hover,
.home a.home-btn--outline,
.home a.home-btn--outline:hover { color: var(--home-ink); }
.home a.home-btn--outline-blue { color: var(--home-primary); }

/* Transport band buttons come from cta-two-btn-migx, which carries no variant
   field. The design's filled/outlined pair is expressed structurally instead,
   so an editor reordering the two rows still gets one of each. */
.home .home-transport__btns a.home-btn--round { background: var(--home-primary); border-color: var(--home-primary); color: #fff; }
.home .home-transport__btns a.home-btn--round ~ a.home-btn--round { background: transparent; border-color: var(--home-primary); color: var(--home-primary); }

/* ---------------------------------------------------------------------------
   Post-handoff corrections, after master supplied the live template source.

   1. The onsite band has no background photograph: cta-one-img is an SVG
      illustration, so the band keeps a flat navy ground and the illustration
      occupies the column the design left empty.
   2. Logos resolve through getSvg or :pthumb, so an inlined <svg> needs the
      same height treatment the <img> gets.
   --------------------------------------------------------------------------- */
.home-onsite--flat { background: var(--home-navy); }
.home-onsite--flat .home-onsite__inner { position: relative; z-index: 1; }
.home-onsite__art { display: flex; align-items: center; justify-content: center; padding: 8px 0; }
.home-onsite__svg { width: 100%; max-width: 360px; height: auto; }
@media (max-width: 860px) { .home-onsite__art { display: none; } }

.home-logo--svg { display: inline-flex; align-items: center; }
.home-logo--svg .home-logo__svg { height: var(--home-logo-h, 38px); width: auto; }
.home-marquee__track .home-logo { flex: 0 0 auto; width: auto; }
.home-transport__svg { width: 100%; height: auto; }

/* === contrast fix on dark bands (master, Gate 5, 2026-09-18) =============
   BUILD-RECIPE trap: the design colours the section and lets headings inherit,
   but the ICA theme sets h1/h2 colour directly (#212124) and a direct rule
   beats inheritance — so every heading on a navy band rendered near-black on
   navy (contrast 1.14:1). Restate the design's value, scoped to the dark
   sections only. Nothing above this block is reordered.                      */
.home .home-hero .home-h1,
.home .home-loc .home-h2,
.home .home-onsite .home-h2,
.home .home-logos .home-h2 {
  color: #fff;
}
/* Onsite card on the blue tile: the design's ink token is unreadable on
   --bs-primary (2.77:1). White, matching the other cards on that tile.       */
.home .home-svc--onsite,
.home .home-svc--onsite b,
.home .home-svc--onsite span {
  color: #fff;
}
