/* ==========================================================================
   LeeMax Safety Solutions LLC — Website Stylesheet
   Brand palette extracted from the approved LeeMax logo files.
   Edit the values in :root below to adjust the whole site at once.
   ========================================================================== */

:root {
  /* --- Brand colors (from logo) --- */
  --navy: #002154;          /* LeeMax navy — logo "LM" mark + "LEE" wordmark */
  --navy-deep: #001736;     /* darker navy for gradients / overlays */
  --navy-mid: #103A70;      /* hover / secondary navy */
  --navy-soft: #E8EDF5;     /* navy tinted surface */
  --red: #D3000F;           /* LeeMax red — hard hat + "MAX" wordmark */
  --red-dark: #A80009;      /* red hover */
  --red-soft: #FDECEC;      /* red tinted surface */
  --ink: #101820;           /* primary text (logo "SAFETY SOLUTIONS") */
  --slate: #55606E;         /* secondary text */
  --slate-light: #7C8794;   /* tertiary text */
  --line: #E1E5EB;          /* borders / dividers */
  --bg: #FFFFFF;            /* page background */
  --bg-alt: #F5F7FA;        /* alternating section background */
  --amber: #F5A300;         /* restrained safety accent — use sparingly */

  /* --- Type --- */
  --font-display: 'Satoshi', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'General Sans', 'Satoshi', 'Segoe UI', system-ui, sans-serif;

  --text-hero: clamp(2.55rem, 5.6vw, 4.4rem);
  --text-h1: clamp(2.1rem, 4vw, 3.1rem);
  --text-h2: clamp(1.7rem, 2.9vw, 2.4rem);
  --text-h3: 1.25rem;
  --text-body: 1.0625rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;

  /* --- Space & shape --- */
  --wrap: 1200px;
  --wrap-narrow: 860px;
  --gutter: 1.5rem;
  --section-y: clamp(4rem, 8vw, 6.5rem);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 32, .06), 0 2px 8px rgba(16, 24, 32, .05);
  --shadow-md: 0 4px 12px rgba(16, 24, 32, .07), 0 12px 32px rgba(16, 24, 32, .07);
  --shadow-lg: 0 18px 48px rgba(0, 33, 84, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------ Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.15rem; }
li { margin-bottom: .45em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------------------- Utilities -------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #E9EEF6; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.center { text-align: center; }
.muted { color: var(--slate); }
.small { font-size: var(--text-sm); }
.xs { font-size: var(--text-xs); }
.mb0 { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin: 0 0 .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--red); display: block; }
.section--navy .eyebrow { color: #FF6B6B; }
.section--navy .eyebrow::before { background: #FF6B6B; }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-left: auto; margin-right: auto; }
.lede { font-size: 1.15rem; color: var(--slate); }
.section--navy .lede, .section--navy .muted { color: #C3CEDF; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Angular pattern inspired by the LM mark — subtle, background only */
.pattern-chevron {
  background-image: url("assets/pattern-chevron.svg");
  background-repeat: repeat;
  background-size: 260px auto;
}
.pattern-fade { position: relative; overflow: hidden; }
.pattern-fade::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0) 55%, var(--bg) 100%);
}

/* ---------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
  text-align: center; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(211, 0, 15, .22); }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-mid); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }
.btn--sm { padding: .55rem 1rem; font-size: .88rem; }
.btn--wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.link-arrow { font-family: var(--font-display); font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow::after { content: "→"; transition: transform .18s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------------------------- Utility bar ------------------------------- */
.utility {
  background: var(--navy); color: #C9D5E6; font-size: var(--text-xs);
  border-bottom: 3px solid var(--red);
}
.utility .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; min-height: 42px; padding-top: .3rem; padding-bottom: .3rem; }
.utility a { color: #fff; }
.utility a:hover { color: #FFB3B3; }
.utility__item { display: inline-flex; align-items: center; gap: .4rem; }
.utility__spacer { margin-left: auto; }
.utility__phone { font-family: var(--font-display); font-weight: 700; font-size: .875rem; color: #fff; }
.utility__social { display: inline-flex; gap: .45rem; }
.utility__social a {
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.3); border-radius: 6px;
}
.utility__social a:hover { background: #fff; color: var(--navy); border-color: #fff; }
.utility__area { color: #9FB2CC; }

/* ------------------------------ Header --------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.site-header .wrap { max-width: 1340px; }
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 82px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; padding: .4rem 0; }
.brand img { height: 48px; width: auto; object-fit: contain; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.nav a {
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  color: var(--ink); padding: .6rem .58rem; border-radius: 6px; position: relative;
  white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: .58rem; right: .58rem; bottom: .28rem; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--navy); }
.header-cta { display: flex; align-items: center; gap: .55rem; margin-left: .7rem; flex: 0 0 auto; }
.nav-toggle {
  display: none; margin-left: auto; background: var(--navy); color: #fff; border: 0;
  width: 46px; height: 42px; border-radius: 8px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px auto; transition: transform .2s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Between 1200px and 1340px the secondary header button is hidden so the
   full navigation stays on one line. The CTA remains in the mobile menu. */
@media (max-width: 1340px) {
  .header-cta .btn--outline { display: none; }
}
@media (max-width: 1200px) {
  .header-cta .btn--outline { display: inline-flex; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); background: #fff;
    flex-direction: column; align-items: stretch; gap: .1rem; padding: 5.5rem 1.25rem 2rem;
    box-shadow: -12px 0 40px rgba(0,0,0,.16); transform: translateX(100%);
    transition: transform .28s var(--ease); overflow-y: auto; margin-left: 0;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { padding: .85rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav a::after { display: none; }
  .header-cta { flex-direction: column; align-items: stretch; margin: 1.25rem 0 0; }
  .header-cta .btn { width: 100%; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(16,24,32,.45); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
}
@media (max-width: 640px) {
  .brand img { height: 42px; }
  .header-inner { min-height: 68px; }
  .utility__hide-sm { display: none; }
}

/* -------------------------------- Hero --------------------------------- */
.hero { position: relative; background: var(--navy-deep); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,20,50,.94) 0%, rgba(0,23,54,.86) 42%, rgba(0,23,54,.55) 72%, rgba(0,23,54,.42) 100%);
}
.hero__inner {
  position: relative; max-width: 780px;
  /* Block padding only — the horizontal gutter comes from .wrap. */
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3.5rem, 7vw, 6rem);
}
.hero h1 { color: #fff; font-size: var(--text-hero); letter-spacing: -.03em; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: #FF5A5A; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #D3DEEE; max-width: 620px; margin-bottom: 1.9rem; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--red); }
.hero__points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 2rem 0 0; font-size: var(--text-sm); color: #C3CEDF; }
.hero__points li { display: flex; align-items: center; gap: .5rem; margin: 0; }
.hero__points li::before { content: ""; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); flex: 0 0 auto; }

.hero-bar { background: #fff; border-bottom: 1px solid var(--line); }
.hero-bar .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); }
.hero-bar__item { background: #fff; padding: 1.4rem 1.5rem; }
.hero-bar__k { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.05rem; margin: 0 0 .15rem; }
.hero-bar__v { color: var(--slate); font-size: var(--text-sm); margin: 0; }

/* Page hero (interior pages) */
.page-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(0,23,54,.95) 0%, rgba(0,23,54,.82) 55%, rgba(0,23,54,.55) 100%); }
.page-hero__inner {
  position: relative; max-width: 760px;
  padding-block: clamp(3rem, 6vw, 4.75rem);
}
.page-hero h1 { color: #fff; margin-bottom: .7rem; }
.page-hero p { color: #CBD7E8; font-size: 1.1rem; margin-bottom: 0; max-width: 620px; }
.page-hero .btn-row { margin-top: 1.6rem; }
.breadcrumbs { font-size: var(--text-xs); color: #9FB2CC; margin-bottom: 1rem; }
.breadcrumbs a { color: #CBD7E8; }
.breadcrumbs span { margin: 0 .4rem; }

/* -------------------------------- Cards -------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .5rem; }
.card p:last-of-type { margin-bottom: 1.1rem; }
.card .link-arrow { margin-top: auto; }
a.card:hover, .card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #C9D3E2; }
/* Whole-card links must not recolour their body copy on hover — only the
   heading and the arrow link respond. */
a.card:hover { color: var(--ink); }
a.card:hover h3, a.card:hover .link-arrow { color: var(--red); }
a.card p, a.card ul, a.card .muted { color: var(--slate); }
a.card h3 { color: var(--navy); transition: color .18s var(--ease); }
.card__icon {
  width: 48px; height: 48px; border-radius: 8px; display: grid; place-items: center;
  background: var(--navy-soft); color: var(--navy); margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card--accent { border-top: 4px solid var(--red); }
.card--flat { box-shadow: none; }

.service-card { position: relative; overflow: hidden; }
.service-card__num {
  position: absolute; top: .9rem; right: 1.1rem; font-family: var(--font-display);
  font-weight: 700; font-size: 2.4rem; color: var(--navy); opacity: .07; line-height: 1;
}
.service-card ul { list-style: none; padding: 0; margin: 0 0 1.2rem; font-size: var(--text-sm); color: var(--slate); }
.service-card ul li { display: flex; gap: .5rem; margin-bottom: .35em; }
.service-card ul li::before { content: ""; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); margin-top: .55em; flex: 0 0 auto; }

/* Feature split */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(2rem, 5vw, 3.75rem); align-items: center; }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split__media img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.split__badge {
  position: absolute; bottom: 0; left: 0; background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .06em;
  text-transform: uppercase; padding: .7rem 1.1rem;
}
.split--reverse .split__media { order: 2; }

/* Checklists */
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .7em; }
.check-list li::before {
  content: "✓"; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 5px;
  background: var(--navy-soft); color: var(--navy); font-size: .78rem; font-weight: 700;
  display: grid; place-items: center; margin-top: .22em;
}
.section--navy .check-list li::before { background: rgba(255,255,255,.14); color: #fff; }
.check-list--red li::before { background: var(--red-soft); color: var(--red-dark); }

.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.pill-list li {
  font-size: var(--text-sm); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: .4rem .95rem; margin: 0; color: var(--ink);
}
.section--navy .pill-list li { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); color: #E9EEF6; }

/* Industry tiles */
.industry {
  display: flex; align-items: center; gap: .85rem; padding: 1.05rem 1.15rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--navy);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.industry:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--navy); }
.industry svg { width: 24px; height: 24px; color: var(--red); flex: 0 0 auto; }

/* Course cards */
.course-card { padding: 0; overflow: hidden; }
.course-card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.course-card__tag {
  align-self: flex-start; font-family: var(--font-display); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--navy);
  background: var(--navy-soft); border-radius: 4px; padding: .28rem .55rem; margin-bottom: .8rem;
}
.course-card h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.course-card p { font-size: var(--text-sm); color: var(--slate); margin-bottom: 1rem; }
.course-card__meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: var(--text-xs); color: var(--slate-light); margin: 0 0 1.1rem; list-style: none; padding: 0; }
.course-card__meta li { margin: 0; }
.course-card__media { height: 148px; background: var(--navy-soft); }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* Filters / search */
.filter-bar { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; margin-bottom: 1.75rem; }
.search-field { position: relative; flex: 1 1 280px; }
.search-field input {
  width: 100%; padding: .8rem 1rem .8rem 2.6rem; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; font-size: var(--text-sm); background: #fff;
}
.search-field svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--slate-light); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-family: var(--font-display); font-weight: 600; font-size: .875rem;
  padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.result-count { font-size: var(--text-sm); color: var(--slate); margin: 0 0 1.25rem; }
.empty-state {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 2.5rem 1.5rem;
  text-align: center; color: var(--slate); background: #fff;
}

/* Testimonials */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.quote__mark { font-family: var(--font-display); font-size: 2.6rem; line-height: .8; color: var(--red); margin-bottom: .5rem; }
.quote blockquote { margin: 0 0 1.25rem; font-size: 1.02rem; color: var(--ink); }
.quote figcaption { margin-top: auto; font-size: var(--text-sm); color: var(--slate); }
.quote figcaption strong { display: block; color: var(--navy); font-family: var(--font-display); }

/* Client logo placeholders (legacy) */
.logo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.logo-slot {
  background: #fff; min-height: 96px; display: grid; place-items: center; text-align: center;
  font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--slate-light); padding: 1rem;
}

/* Client logo marquee (infinite scroll) */
.client-marquee {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.25rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.client-marquee__track {
  display: flex;
  width: max-content;
  animation: client-marquee-scroll 45s linear infinite;
}
.client-marquee:hover .client-marquee__track { animation-play-state: paused; }
.client-marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 1px;
}
.client-chip {
  flex: 0 0 auto;
  width: 200px;
  height: 110px;
  display: grid;
  place-items: center;
  padding: 1rem 1.5rem;
  background: #fff;
  margin: 0 .75rem;
  border-radius: 8px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.client-chip img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .78;
  transition: filter .3s ease, opacity .3s ease;
}
.client-marquee:hover .client-chip img,
.client-chip:hover img { filter: grayscale(0); opacity: 1; }
.client-chip--dark { background: #0B3559; box-shadow: 0 1px 2px rgba(11,53,89,.15); }
.client-chip--dark img { filter: none; opacity: .92; }
.client-marquee:hover .client-chip--dark img,
.client-chip--dark:hover img { opacity: 1; }

@keyframes client-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .client-marquee__track { animation: none; }
  .client-marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .client-chip img { filter: grayscale(0); opacity: 1; }
}

@media (max-width: 640px) {
  .client-chip { width: 150px; height: 84px; padding: .75rem 1rem; margin: 0 .5rem; }
  .client-marquee__track { animation-duration: 35s; }
}

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.stat { border-left: 3px solid var(--red); padding-left: 1.1rem; }
.stat__n { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--navy); line-height: 1.1; margin: 0 0 .2rem; }
.section--navy .stat__n { color: #fff; }
.stat__l { margin: 0; font-size: var(--text-sm); color: var(--slate); }
.section--navy .stat__l { color: #B9C7DB; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.steps li { counter-increment: step; margin: 0; padding-top: 2.9rem; position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff;
  background: var(--navy); width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.steps p { font-size: var(--text-sm); color: var(--slate); margin: 0; }

/* Accordion / FAQ */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  cursor: pointer; padding: 1.15rem .5rem 1.15rem 0; font-family: var(--font-display);
  font-weight: 600; color: var(--navy); font-size: 1.03rem; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--red); font-size: 1.4rem; line-height: 1; flex: 0 0 auto; }
.accordion details[open] summary::after { content: "–"; }
.accordion details > *:not(summary) { margin-bottom: 1.15rem; color: var(--slate); font-size: var(--text-sm); }

/* Notes / callouts */
.note {
  background: var(--navy-soft); border-left: 4px solid var(--navy); border-radius: 6px;
  padding: 1rem 1.15rem; font-size: var(--text-sm); color: var(--ink);
}
.note--verify { background: #FFF8E6; border-left-color: var(--amber); }
.note strong { font-family: var(--font-display); }

/* -------------------------------- Forms -------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .875rem; color: var(--navy); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--text-sm); padding: .72rem .85rem; border: 1px solid #CFD6E0;
  border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 33, 84, .12); outline: none;
}
.field .hint { font-size: var(--text-xs); color: var(--slate-light); }
.field-error { font-size: var(--text-xs); color: var(--red-dark); display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field.has-error .field-error { display: block; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .55rem; }
.checkbox {
  display: flex; align-items: center; gap: .55rem; font-size: var(--text-sm);
  border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; cursor: pointer; background: #fff;
}
.checkbox:hover { border-color: var(--navy); }
.checkbox input { width: 18px; height: 18px; accent-color: var(--navy); flex: 0 0 auto; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-footer { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form-note { font-size: var(--text-xs); color: var(--slate-light); margin: 0; }
.form-success {
  display: none; background: #F1F8F0; border: 1px solid #BFDCBA; border-left: 4px solid #3F7A2E;
  border-radius: 8px; padding: 1.25rem 1.4rem; margin-bottom: 1.5rem;
}
.form-success.is-visible { display: block; }
.form-success h3 { color: #2E5C22; font-size: 1.1rem; margin-bottom: .35rem; }
.form-success p { margin: 0; font-size: var(--text-sm); color: #37552F; }
fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
fieldset legend {
  font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.05rem;
  padding: 0 0 .9rem; border-bottom: 1px solid var(--line); width: 100%; margin-bottom: 1.1rem;
}

/* Contact detail blocks */
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.contact-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.contact-card p { margin: 0; font-size: var(--text-sm); color: var(--slate); }
.contact-card a { font-family: var(--font-display); font-weight: 700; }

/* CTA band */
.cta-band { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.cta-band__inner { position: relative; padding: clamp(3rem, 6vw, 4.5rem) 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { color: #C3CEDF; margin-bottom: 0; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 760px) { .cta-band .btn-row { justify-content: flex-start; } }

/* Resources / blog */
.post-card { padding: 0; overflow: hidden; }
.post-card__media { height: 168px; background: var(--navy-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: var(--text-xs); color: var(--slate-light); margin-bottom: .5rem; }
.post-card h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.post-card p { font-size: var(--text-sm); color: var(--slate); }

/* Sidebar layout */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
@media (max-width: 940px) { .with-aside { grid-template-columns: 1fr; } }
.aside-sticky { position: sticky; top: 110px; display: grid; gap: 1.25rem; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.aside-card h3 { font-size: 1.05rem; }
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: var(--text-sm); margin: 0; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list span:first-child { color: var(--slate); }
.spec-list span:last-child { font-family: var(--font-display); font-weight: 600; color: var(--navy); text-align: right; }

/* Team placeholders */
.team-card { text-align: center; }
.team-card__photo {
  aspect-ratio: 1; background: var(--navy-soft); border-radius: var(--radius);
  display: grid; place-items: center; color: var(--slate-light); font-size: var(--text-xs);
  margin-bottom: 1rem; font-family: var(--font-display); letter-spacing: .08em; text-transform: uppercase;
}
.team-card h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.team-card p { font-size: var(--text-sm); color: var(--slate); margin: 0; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-display); color: var(--navy); background: var(--bg-alt); font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

/* -------------------------------- Footer ------------------------------- */
.site-footer { background: var(--navy-deep); color: #A9BAD1; font-size: var(--text-sm); }
.site-footer a { color: #D6E0EE; }
.site-footer a:hover { color: #fff; }
.footer-top { padding: clamp(2.75rem, 5vw, 4rem) 0 2.5rem; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.footer-brand { background: #fff; border-radius: 8px; padding: .9rem 1rem; display: inline-block; margin-bottom: 1.1rem; }
.footer-brand img { height: 44px; width: auto; }
.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .55em; }
.footer-social { display: flex; gap: .55rem; margin-top: 1rem; }
.footer-social a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.24); border-radius: 8px; display: grid; place-items: center; }
.footer-social a:hover { background: #fff; color: var(--navy); border-color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding: 1.25rem 0; display: flex;
  flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; font-size: var(--text-xs);
}
.footer-bottom p { margin: 0; }
.footer-bottom nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 1.1rem; }

/* 404 */
.error-page { text-align: center; padding: clamp(4rem, 10vw, 8rem) 0; }
.error-page .code { font-family: var(--font-display); font-weight: 700; font-size: clamp(4.5rem, 14vw, 9rem); color: var(--navy-soft); line-height: .9; margin: 0; letter-spacing: -.04em; }

/* ----------------------------- Motion ---------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ----------------------------- Print ----------------------------------- */
@media print {
  .utility, .site-header, .cta-band, .site-footer, .btn { display: none !important; }
  body { color: #000; }
}

/* ===================== NAV DROPDOWN (added 2026-08-10) ===================== */
.nav .has-dropdown { position: relative; }
.nav .has-dropdown > .dropdown-toggle {
  display: inline-flex; align-items: center; gap: .3rem;
  background: none; border: 0; font: inherit; color: inherit; cursor: pointer;
  padding: .6rem .7rem; border-radius: 6px; position: relative;
}
.nav .has-dropdown > .dropdown-toggle::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .35rem;
  height: 2px; background: var(--red, #d93025);
  transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease, ease);
}
.nav .has-dropdown:hover > .dropdown-toggle::after,
.nav .has-dropdown[aria-current="page"] > .dropdown-toggle::after,
.nav .has-dropdown.is-open > .dropdown-toggle::after { transform: scaleX(1); }
.nav .has-dropdown > .dropdown-toggle .caret {
  width: 10px; height: 10px; display: inline-block;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease, ease);
}
.nav .has-dropdown.is-open > .dropdown-toggle .caret,
.nav .has-dropdown:hover > .dropdown-toggle .caret { transform: rotate(-135deg) translateY(2px); }

.nav .dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px; box-shadow: 0 12px 30px rgba(16,24,32,.12);
  padding: .35rem; margin: .35rem 0 0;
  list-style: none; display: none; z-index: 60;
}
.nav .has-dropdown:hover > .dropdown-menu,
.nav .has-dropdown.is-open > .dropdown-menu { display: block; }
.nav .dropdown-menu li { margin: 0; }
.nav .dropdown-menu a {
  display: block; padding: .65rem .85rem; border-radius: 6px;
  color: var(--navy, #0b3559); text-decoration: none; font-weight: 500;
}
.nav .dropdown-menu a:hover, .nav .dropdown-menu a:focus { background: var(--bg-soft, #f5f7fb); }
.nav .dropdown-menu .dd-label {
  display: block; font-weight: 700; font-size: .95rem;
}
.nav .dropdown-menu .dd-sub {
  display: block; font-size: .78rem; color: var(--muted, #5a6675); font-weight: 400; margin-top: 2px;
}

/* Mobile: dropdown collapses inline */
@media (max-width: 900px) {
  .nav .has-dropdown > .dropdown-toggle { width: 100%; justify-content: space-between; padding: .85rem .5rem; border-bottom: 1px solid var(--line, #e5e7eb); border-radius: 0; font-size: 1.05rem; }
  .nav .has-dropdown > .dropdown-toggle::after { display: none; }
  .nav .dropdown-menu {
    position: static; box-shadow: none; border: 0; padding: 0 0 .35rem .8rem; margin: 0;
    background: transparent; min-width: 0;
  }
  .nav .dropdown-menu a { padding: .7rem .5rem; border-bottom: 1px solid var(--line, #e5e7eb); }
}

/* ==========================================================
   OSHAlytics partner strip (footer accent above main footer)
   ========================================================== */
.oshalytics-strip {
  background: #F7F8FA;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  padding: 2rem 0;
}
.oshalytics-strip__inner {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 2rem;
  align-items: center;
}
.oshalytics-strip__logo {
  display: block;
  max-width: 220px;
}
.oshalytics-strip__logo img {
  width: 100%;
  height: auto;
  display: block;
}
.oshalytics-strip__tag {
  margin: 0 0 .35rem;
  font-size: 1rem;
  color: #0B3559;
}
.oshalytics-strip__body {
  margin: 0;
  font-size: .92rem;
  color: #4B5563;
  line-height: 1.5;
}
.oshalytics-strip__cta {
  white-space: nowrap;
}
@media (max-width: 860px) {
  .oshalytics-strip__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
  }
  .oshalytics-strip__logo {
    margin: 0 auto;
    max-width: 260px;
  }
  .oshalytics-strip__cta {
    justify-self: center;
  }
}
