.safety-page {
  background: #f7faf7;
}

.safety-hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-height) + 112px) 0 118px;
  color: #fff;
}

.safety-hero-media,
.safety-hero-shade {
  position: absolute;
  inset: 0;
}

.safety-hero-media {
  z-index: -3;
  overflow: hidden;
  background: #11251d;
}

.safety-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
}

.safety-hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 24, 18, 0.88) 0%, rgba(15, 39, 31, 0.68) 48%, rgba(23, 44, 38, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.08) 44%, rgba(8, 30, 22, 0.72) 100%);
}

.safety-hero-inner {
  position: relative;
  z-index: 1;
}

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

.safety-hero-copy h1 {
  margin: 0;
  font-size: clamp(3.2rem, 6.4vw, 6.5rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.safety-hero-copy p:not(.hero-kicker) {
  width: min(690px, 100%);
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  line-height: 2;
}

.safety-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.safety-metric-strip {
  position: relative;
  z-index: 4;
  margin-top: -68px;
  padding-bottom: 58px;
}

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

.safety-metric {
  min-height: 184px;
  padding: 24px;
  color: #17231e;
  background: #fff;
  border: 1px solid rgba(223, 231, 225, 0.9);
  border-top: 6px solid var(--green-700);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(21, 47, 34, 0.14);
}

.safety-metric span {
  display: block;
  color: #5a665f;
  font-size: 0.88rem;
  font-weight: 900;
}

.safety-metric strong {
  display: block;
  margin-top: 12px;
  color: #10271d;
  font-size: 2.15rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.safety-metric p {
  margin: 16px 0 0;
  color: #5a665f;
  font-size: 0.94rem;
  line-height: 1.65;
}

.safety-metric-red {
  border-top-color: #c94a3d;
}

.safety-metric-amber {
  border-top-color: #dfaa37;
}

.safety-metric-blue {
  border-top-color: #2f739f;
}

.safety-metric-green {
  border-top-color: #3d9a62;
}

.safety-anchor-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 20;
  background: rgba(247, 250, 247, 0.92);
  border-top: 1px solid rgba(223, 231, 225, 0.8);
  border-bottom: 1px solid rgba(223, 231, 225, 0.92);
  backdrop-filter: blur(12px);
}

.safety-anchor-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.safety-anchor-inner::-webkit-scrollbar {
  display: none;
}

.safety-anchor-inner a {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--green-900);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.safety-anchor-inner a:hover,
.safety-anchor-inner a:focus-visible {
  transform: translateY(-2px);
  color: var(--green-700);
  border-color: rgba(61, 154, 98, 0.54);
}

.safety-section {
  padding: 92px 0;
}

.safety-section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.safety-section-heading-left {
  margin: 0;
  text-align: left;
}

.safety-section-heading h2 {
  margin: 0;
  color: var(--green-900);
  font-size: 2.55rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.safety-section-heading p:not(.eyebrow),
.section-heading-row > p {
  margin: 16px 0 0;
  color: #5a665f;
  line-height: 1.95;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 44px;
  align-items: start;
}

.policy-panels {
  display: grid;
  gap: 18px;
}

.policy-panel {
  position: relative;
  overflow: hidden;
  min-height: 228px;
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(20, 60, 45, 0.96), rgba(38, 99, 72, 0.9)),
    url("../video/source/path.jpg") center / cover no-repeat;
  border-radius: 8px;
}

.policy-panel-env {
  background:
    linear-gradient(135deg, rgba(29, 70, 89, 0.96), rgba(49, 115, 90, 0.86)),
    url("../video/source/green-space.jpg") center / cover no-repeat;
}

.policy-panel span,
.slogan-card span,
.priority-card span,
.month-card span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  color: #10271d;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  background: #f3ce61;
  border-radius: 999px;
}

.policy-panel h3 {
  margin: 18px 0 0;
  font-size: 1.45rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.policy-panel p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.85;
}

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

.slogan-card {
  min-height: 220px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(21, 47, 34, 0.07);
}

.slogan-card:nth-child(2) span {
  background: #9fc7df;
}

.slogan-card:nth-child(3) span {
  background: #f1b1a8;
}

.slogan-card:nth-child(4) span {
  background: #addd98;
}

.slogan-card h3 {
  margin: 28px 0 0;
  color: var(--green-900);
  font-size: 1.32rem;
  line-height: 1.55;
  letter-spacing: 0;
}

.priority-section {
  background: #fff;
}

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

.priority-card {
  min-height: 360px;
  padding: 28px;
  background: #f7faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.priority-card:nth-child(2n) {
  background: #f4f8fa;
}

.priority-card:nth-child(3n) {
  background: #fff9ec;
}

.priority-card span {
  background: #10271d;
  color: #fff;
}

.priority-card h3 {
  margin: 20px 0 0;
  color: var(--green-900);
  font-size: 1.2rem;
  line-height: 1.5;
  letter-spacing: 0;
}

.priority-card ul,
.month-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.priority-card li,
.month-card li {
  position: relative;
  padding-left: 18px;
  color: #4e5f56;
  font-size: 0.94rem;
  line-height: 1.7;
}

.priority-card li + li,
.month-card li + li {
  margin-top: 9px;
}

.priority-card li::before,
.month-card li::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--green-700);
  border-radius: 999px;
}

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

.month-card {
  min-height: 320px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(21, 47, 34, 0.06);
}

.month-card span {
  background: #e8f1ea;
  color: var(--green-900);
}

.month-card:nth-child(3n + 1) span {
  background: #f4d677;
}

.month-card:nth-child(3n + 2) span {
  background: #b5d6e7;
}

.month-card:nth-child(3n) span {
  background: #b9dfa9;
}

.month-card h3 {
  margin: 18px 0 0;
  color: var(--green-900);
  font-size: 1.08rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.safety-contact {
  background:
    linear-gradient(90deg, rgba(11, 48, 29, 0.66), rgba(31, 92, 53, 0.54)),
    url("../img/contact-forest-bg.png") center 42% / cover no-repeat;
}

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

  .policy-layout {
    grid-template-columns: 1fr;
  }

  .slogan-grid,
  .priority-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .safety-hero {
    min-height: 680px;
    padding: calc(var(--header-height) + 74px) 0 108px;
  }

  .safety-hero-media img {
    object-position: 58% center;
  }

  .safety-hero-copy h1 {
    font-size: 3.1rem;
  }

  .safety-hero-copy p:not(.hero-kicker) {
    font-size: 1rem;
    line-height: 1.85;
  }

  .safety-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .safety-metric-strip {
    margin-top: -52px;
    padding-bottom: 38px;
  }

  .safety-metric-grid,
  .slogan-grid,
  .priority-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .safety-section {
    padding: 72px 0;
  }

  .safety-section-heading h2 {
    font-size: 2.1rem;
  }

  .priority-card,
  .month-card {
    min-height: auto;
  }
}

@media (max-width: 430px) {
  .safety-hero-copy h1 {
    font-size: 2.52rem;
  }

  .safety-metric,
  .policy-panel,
  .slogan-card,
  .priority-card,
  .month-card {
    padding: 20px;
  }

  .safety-section-heading h2 {
    font-size: 1.82rem;
  }
}
