:root {
  color-scheme: light;
  --bg: #f4f7f3;
  --surface: #ffffff;
  --surface-soft: #eef5ef;
  --ink: #17211b;
  --muted: #617064;
  --line: #d7e1d8;
  --green: #16825d;
  --green-dark: #083f30;
  --yellow: #f2b63d;
  --blue: #2d6ead;
  --red: #b84747;
  --shadow: 0 18px 42px rgba(23, 33, 27, 0.1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(23, 33, 27, 0.12);
  background: rgba(251, 253, 250, 0.86);
  padding: 16px clamp(18px, 5vw, 72px);
  box-shadow: 0 10px 30px rgba(23, 33, 27, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
.site-nav,
.cta-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 950;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 950;
}

.brand-name {
  white-space: nowrap;
}

.site-nav {
  gap: 6px;
}

.site-nav a,
.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 9px 13px;
  font-weight: 850;
  text-decoration: none;
}

.site-nav a:not(.nav-cta):hover {
  background: #e9f0ea;
}

.nav-cta,
.primary-cta {
  border: 1px solid var(--green-dark);
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 12px 26px rgba(8, 63, 48, 0.22);
}

.nav-cta:visited,
.primary-cta:visited {
  color: #fff;
}

.secondary-cta {
  border: 1px solid rgba(23, 33, 27, 0.18);
  background: rgba(255, 255, 255, 0.8);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 86svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 118px clamp(18px, 5vw, 72px) 72px;
  background: #eef4f0;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(251, 253, 250, 1) 0%,
      rgba(251, 253, 250, 0.96) 34%,
      rgba(251, 253, 250, 0.58) 58%,
      rgba(251, 253, 250, 0.08) 100%
    ),
    url("/assets/ehs/ehs-training-hero.png");
  background-position: center;
  background-size: cover;
  content: "";
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(23, 33, 27, 0.14);
  content: "";
}

.hero-copy {
  width: min(100%, 690px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.intro-copy h2,
.section-heading h2,
.lens-copy h2,
.fit-section h2,
.final-cta h2 {
  margin: 0;
  color: #111b15;
  line-height: 0.98;
}

.hero h1 {
  max-width: 740px;
  font-size: 5.2rem;
  font-weight: 950;
}

.lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: #34423a;
  font-size: 1.18rem;
  line-height: 1.58;
}

.cta-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  margin: 42px 0 0;
  border-top: 1px solid rgba(23, 33, 27, 0.16);
  padding-top: 18px;
}

.proof-row div {
  border-left: 1px solid rgba(23, 33, 27, 0.14);
  padding: 0 18px;
}

.proof-row div:first-child {
  border-left: 0;
  padding-left: 0;
}

.proof-row dt {
  color: var(--green-dark);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.proof-row dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.intro-band,
.course-section,
.lens-section,
.toolkit-section,
.fit-section,
.final-cta {
  padding: 70px clamp(18px, 5vw, 72px);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 36px;
  align-items: end;
  background: #fff;
}

.intro-copy h2,
.section-heading h2,
.lens-copy h2,
.fit-section h2,
.final-cta h2 {
  font-size: 2.65rem;
}

.intro-copy p:not(.eyebrow),
.section-heading p,
.lens-copy p,
.fit-section p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.64;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.signal-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--green-dark);
  padding: 10px 13px;
  font-weight: 900;
}

.course-section {
  background: var(--bg);
}

.section-heading {
  width: min(100%, 880px);
  margin-bottom: 28px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.course-card,
.toolkit-grid article,
.fit-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.course-card {
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: 22px;
}

.course-card.whmis {
  border-top: 5px solid var(--yellow);
}

.course-card.hira {
  border-top: 5px solid var(--blue);
}

.course-card.incident {
  border-top: 5px solid var(--red);
}

.course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.course-code {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #ecf4ee;
  color: var(--green-dark);
  font-weight: 950;
}

.course-chip {
  border-radius: 999px;
  background: #f6f1df;
  color: #6f4a0a;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 900;
}

.course-card h3,
.toolkit-grid h3,
.fit-panel h3,
.lens-grid h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
}

.course-card h3 {
  font-size: 1.45rem;
}

.course-card p,
.course-card li,
.toolkit-grid p,
.lens-grid p,
.fit-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.course-card ul {
  display: grid;
  gap: 8px;
  margin: 2px 0 18px;
  padding-left: 20px;
}

.course-card a {
  margin-top: auto;
  color: var(--green-dark);
  font-weight: 950;
}

.lens-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: 42px;
  align-items: start;
  background: #173127;
  color: #fff;
}

.lens-section .eyebrow,
.lens-section h2 {
  color: #fff;
}

.lens-section p {
  color: rgba(255, 255, 255, 0.76);
}

.lens-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lens-grid article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.lens-grid img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
}

.lens-grid h3 {
  color: #fff;
  font-size: 1.03rem;
}

.lens-grid p {
  margin: 7px 0 0;
  font-size: 0.92rem;
}

.toolkit-section {
  background: #fff;
}

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.toolkit-grid article {
  min-height: 220px;
  padding: 20px;
}

.toolkit-grid span {
  display: inline-flex;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--green-dark);
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 950;
}

.fit-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 36px;
  align-items: start;
  background: var(--bg);
}

.fit-panel {
  padding: 24px;
}

.fit-panel h3 + p {
  margin-top: 8px;
}

.fit-panel h3:not(:first-child) {
  margin-top: 24px;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #101a14;
  color: #fff;
}

.final-cta .eyebrow,
.final-cta h2 {
  color: #fff;
}

.final-cta h2 {
  max-width: 860px;
  font-size: 2.25rem;
}

.final-cta .primary-cta {
  border-color: #fff;
  background: #fff;
  color: #101a14;
  box-shadow: none;
}

.final-cta .primary-cta:visited {
  color: #101a14;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 22px clamp(18px, 5vw, 72px);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1080px) {
  .course-grid,
  .toolkit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-band,
  .lens-section,
  .fit-section {
    grid-template-columns: 1fr;
  }

  .signal-strip {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 15px 16px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: auto;
    padding: 164px 18px 48px;
  }

  .hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(251, 253, 250, 1) 0%,
        rgba(251, 253, 250, 0.96) 56%,
        rgba(251, 253, 250, 0.74) 100%
      ),
      url("/assets/ehs/ehs-training-hero.png");
    background-position: 62% center;
    background-size: cover;
  }

  .hero h1 {
    font-size: 2.85rem;
  }

  .lede {
    font-size: 1rem;
  }

  .proof-row,
  .course-grid,
  .lens-grid,
  .toolkit-grid {
    grid-template-columns: 1fr;
  }

  .proof-row {
    gap: 14px;
  }

  .proof-row div,
  .proof-row div:first-child {
    border-left: 0;
    border-top: 1px solid rgba(23, 33, 27, 0.14);
    padding: 14px 0 0;
  }

  .proof-row div:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .intro-band,
  .course-section,
  .lens-section,
  .toolkit-section,
  .fit-section,
  .final-cta {
    padding: 48px 18px;
  }

  .intro-copy h2,
  .section-heading h2,
  .lens-copy h2,
  .fit-section h2 {
    font-size: 2rem;
  }

  .course-card {
    min-height: auto;
  }

  .final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .final-cta h2 {
    font-size: 1.85rem;
  }
}
