/* Home / Segurança do Trabalho — scoped redesign. */
.home-safety {
  position: relative;
  overflow: clip;
  background: #f6faf7;
}

.home-safety::before {
  content: none;
}

.home-safety-tech-lines {
  position: absolute;
  z-index: 0;
  width: 280px;
  height: 180px;
  color: var(--green);
  opacity: .075;
  pointer-events: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.home-safety-tech-lines circle {
  fill: currentColor;
  stroke: none;
}

.home-safety-tech-lines-top {
  top: 0;
  right: 0;
}

.home-safety-tech-lines-bottom {
  bottom: 0;
  left: 0;
  transform: rotate(180deg);
}

.home-safety-layout {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: clamp(42px, 6vw, 76px);
}

.home-safety-copy {
  min-width: 0;
}

.home-safety-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-safety-kicker span {
  width: 30px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
}

.home-safety-copy h2 {
  max-width: 610px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 780;
  letter-spacing: -.052em;
  line-height: 1.03;
}

.home-safety-copy h2 strong {
  color: var(--green);
  font: inherit;
}

.home-safety-description {
  display: grid;
  max-width: 570px;
  gap: 13px;
  margin-top: 27px;
}

.home-safety-description p {
  margin: 0;
  color: #526477;
  font-size: clamp(.94rem, 1.45vw, 1.04rem);
  line-height: 1.7;
}

.home-safety .home-safety-cta {
  min-height: 52px;
  margin-top: 29px;
  padding-inline: 23px;
  border-color: var(--green-dark);
  color: #fff;
  background: var(--green-dark);
  box-shadow: 0 12px 28px rgb(2 102 46 / 18%);
  will-change: transform;
  transition: transform 460ms cubic-bezier(.16, 1, .3, 1), background-color 400ms cubic-bezier(.16, 1, .3, 1), border-color 400ms cubic-bezier(.16, 1, .3, 1), box-shadow 460ms cubic-bezier(.16, 1, .3, 1);
}

.home-safety .home-safety-cta:hover {
  color: #fff;
  background: var(--green-deep);
  box-shadow: 0 17px 34px rgb(1 74 35 / 24%);
  transform: translateY(-5px);
}

.home-safety .home-safety-cta > span {
  display: inline-block;
  transition: transform 460ms cubic-bezier(.16, 1, .3, 1);
}

.home-safety .home-safety-cta:hover > span {
  transform: translateX(5px);
}

.home-safety .home-safety-cta:active {
  transform: translateY(-1px) scale(.985);
}

.home-safety-region {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 21px 0 0;
  color: #536b5e;
  font-size: .8rem;
  font-weight: 650;
  line-height: 1.5;
}

.home-safety-region svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--green);
  stroke-width: 1.7;
}

.home-safety-services,
.home-safety-card-list {
  display: grid;
  min-width: 0;
}

.home-safety-card-list {
  gap: 13px;
}

.home-safety-service-card {
  display: grid;
  min-width: 0;
  min-height: 142px;
  grid-template-columns: 68px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 18px;
  padding: 22px 20px;
  border: 1px solid #d7e8dc;
  border-radius: 19px;
  color: inherit;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 8px 25px rgb(15 71 42 / 4%);
  text-decoration: none;
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1), border-color 260ms cubic-bezier(.22, 1, .36, 1), box-shadow 260ms cubic-bezier(.22, 1, .36, 1), background-color 260ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.home-safety-service-card:hover {
  border-color: #acd4ba;
  background: #fff;
  box-shadow: 0 16px 36px rgb(15 71 42 / 9%);
  transform: translateY(-4px);
}

.home-safety-service-card:focus-visible,
.home-safety-all-link:focus-visible {
  border-radius: 12px;
  outline: 3px solid rgb(3 145 66 / 24%);
  outline-offset: 4px;
}

.home-safety-icon {
  display: grid;
  width: 68px;
  height: 68px;
  border: 1px solid #dcece2;
  border-radius: 15px;
  color: var(--green-dark);
  background: #edf7f1;
  place-items: center;
}

.home-safety-icon svg {
  width: 33px;
  height: 33px;
  stroke-width: 1.65;
}

.home-safety-icon-image {
  overflow: hidden;
}

.home-safety-icon .home-safety-attached-icon {
  width: 44px;
  height: 44px;
  max-width: none;
}

.home-safety-card-content {
  display: block;
  min-width: 0;
}

.home-safety-code {
  display: table;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1;
}

.home-safety-card-content strong,
.home-safety-card-content small {
  display: block;
}

.home-safety-card-content strong {
  color: #17243a;
  font-size: .96rem;
  line-height: 1.35;
}

.home-safety-card-content small {
  margin-top: 5px;
  color: #66768a;
  font-size: .77rem;
  line-height: 1.5;
}

.home-safety-card-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid #cfe4d7;
  border-radius: 50%;
  color: var(--green-dark);
  background: #f7fbf8;
  place-items: center;
  transition: color 260ms cubic-bezier(.22, 1, .36, 1), background-color 260ms cubic-bezier(.22, 1, .36, 1), transform 260ms cubic-bezier(.22, 1, .36, 1);
}

.home-safety-card-arrow svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

.home-safety-service-card:hover .home-safety-card-arrow {
  color: #fff;
  background: var(--green-dark);
  transform: translateX(4px);
}

.home-safety-all-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: center;
  margin-top: 24px;
  color: var(--green-dark);
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
}

.home-safety-all-label {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

.home-safety-all-label::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentcolor;
  clip-path: inset(0 100% 0 0);
  content: "";
  transition: clip-path 650ms cubic-bezier(.4, 0, .2, 1);
}

.home-safety-all-arrow {
  display: inline-block;
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1);
}

.home-safety-all-link:hover .home-safety-all-label::after,
.home-safety-all-link:focus-visible .home-safety-all-label::after {
  clip-path: inset(0 0 0 0);
}

.home-safety-all-link:hover .home-safety-all-arrow {
  transform: translateX(4px);
}

@media (min-width: 980px) {
  .home-safety-layout {
    grid-template-columns: minmax(0, 42fr) minmax(480px, 58fr);
  }

  .home-safety-copy h2 > span,
  .home-safety-copy h2 > strong {
    display: block;
  }
}

@media (max-width: 979px) {
  .home-safety-copy {
    max-width: 720px;
  }

  .home-safety-services {
    max-width: 760px;
  }
}

@media (max-width: 599px) {
  .home-safety {
    overflow: hidden;
  }

  .home-safety-tech-lines {
    display: none;
  }

  .home-safety-layout {
    gap: 34px;
  }

  .home-safety-copy h2 {
    font-size: clamp(2.15rem, 11vw, 3rem);
    line-height: 1.06;
  }

  .home-safety .home-safety-cta {
    width: 100%;
  }

  .home-safety-service-card {
    min-height: 0;
    grid-template-columns: 54px minmax(0, 1fr) 38px;
    gap: 13px;
    padding: 19px 15px;
    border-radius: 17px;
  }

  .home-safety-icon {
    width: 54px;
    height: 54px;
    border-radius: 13px;
  }

  .home-safety-icon svg {
    width: 28px;
    height: 28px;
  }

  .home-safety-icon .home-safety-attached-icon {
    width: 36px;
    height: 36px;
  }

  .home-safety-card-arrow {
    width: 38px;
    height: 38px;
  }

  .home-safety-card-content strong {
    font-size: .9rem;
  }

  .home-safety-card-content small {
    font-size: .73rem;
  }
}

@media (max-width: 390px) {
  .home-safety-service-card {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .home-safety-icon {
    width: 50px;
    height: 50px;
  }

  .home-safety-card-arrow {
    grid-column: 2;
    justify-self: end;
    margin-top: -4px;
  }
}

@media (hover: none) {
  .home-safety-service-card:hover,
  .home-safety .home-safety-cta:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) and (hover: hover) {
  .home-safety-service-card,
  .home-safety-card-arrow,
  .home-safety-all-arrow {
    transition: none;
  }

  .home-safety-all-label::after {
    transition: clip-path 650ms cubic-bezier(.4, 0, .2, 1) !important;
  }

  .home-safety .home-safety-cta {
    transition: transform 460ms cubic-bezier(.16, 1, .3, 1), background-color 400ms cubic-bezier(.16, 1, .3, 1), border-color 400ms cubic-bezier(.16, 1, .3, 1), box-shadow 460ms cubic-bezier(.16, 1, .3, 1) !important;
  }

  .home-safety .home-safety-cta > span {
    transition: transform 460ms cubic-bezier(.16, 1, .3, 1) !important;
  }

  .home-safety-service-card:hover,
  .home-safety-service-card:hover .home-safety-card-arrow,
  .home-safety-all-link:hover .home-safety-all-arrow {
    transform: none;
  }

  .home-safety .home-safety-cta:hover {
    transform: translateY(-4px) !important;
  }

  .home-safety .home-safety-cta:hover > span {
    transform: translateX(5px) !important;
  }
}
