/**
 * Footer trust-seal strip (#benefits-section).
 * Replaces the four generic white boxes with a connected botanical-seal rail.
 */

#benefits-section {
  --isarva-seal: #006c34;
  --isarva-ink: #12301f;
  --isarva-gold: #c4a35a;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 240px at 12% -10%, rgba(196, 163, 90, 0.16), transparent 62%),
    radial-gradient(760px 220px at 92% 112%, rgba(0, 108, 52, 0.07), transparent 58%),
    linear-gradient(180deg, #fbf6ec 0%, #f6eee0 52%, #fcf9f2 100%) !important;
}

#benefits-section::before {
  content: "";
  position: absolute;
  inset: auto 8% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 163, 90, 0.45), transparent);
  pointer-events: none;
}

#benefits-section .img-section {
  padding-bottom: 1.75rem;
}

#benefits-section .benefits-rail {
  position: relative;
  z-index: 1;
}

/* Hairline that threads the four seals together (desktop only). */
@media (min-width: 1200px) {
  #benefits-section .benefits-rail::before {
    content: "";
    position: absolute;
    top: 4.15rem;
    left: 11%;
    right: 11%;
    height: 1px;
    background-image: repeating-linear-gradient(
      90deg,
      rgba(0, 108, 52, 0.32) 0 7px,
      transparent 7px 14px
    );
    pointer-events: none;
    z-index: 0;
  }

  #benefits-section .benefits-rail::after {
    content: "";
    position: absolute;
    top: calc(4.15rem - 3px);
    left: 50%;
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    background: var(--isarva-gold);
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 0;
  }
}

#benefits-section .benefit-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  height: 100%;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.2rem 0.6rem 0.4rem !important;
  color: var(--isarva-ink);
  transition: transform 0.28s ease;
}

#benefits-section .benefit-box:hover,
#benefits-section .benefit-box:focus-within {
  transform: translateY(-3px);
  z-index: 2;
}

#benefits-section .benefit-box__index {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--isarva-gold);
  line-height: 1;
}

#benefits-section .benefit-box__seal {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--isarva-seal);
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0 42%, #e7f3ec 100%);
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(18, 48, 31, 0.12);
}

#benefits-section .benefit-box__seal::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 108, 52, 0.38);
  pointer-events: none;
  transition: transform 0.6s ease, border-color 0.3s ease;
}

#benefits-section .benefit-box__seal::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(0, 108, 52, 0.1);
  pointer-events: none;
}

#benefits-section .benefit-box:hover .benefit-box__seal::before,
#benefits-section .benefit-box:focus-within .benefit-box__seal::before {
  transform: rotate(28deg);
  border-color: rgba(196, 163, 90, 0.7);
}

#benefits-section .benefit-box:hover .benefit-box__seal,
#benefits-section .benefit-box:focus-within .benefit-box__seal {
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, 0.95),
    0 14px 28px rgba(0, 108, 52, 0.16);
}

#benefits-section .benefit-box img,
#benefits-section .benefit-box svg {
  width: 34px;
  height: 34px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

#benefits-section .benefit-box svg {
  display: block;
}

#benefits-section .benefit-box__label,
#benefits-section .benefit-box p {
  margin: 0;
  max-width: 11.5rem;
  font-family: "Jost", Arial, sans-serif;
  font-size: 0.98rem !important;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: var(--isarva-ink);
  transition: color 0.2s ease;
}

#benefits-section .benefit-box:hover .benefit-box__label,
#benefits-section .benefit-box:hover p {
  color: var(--isarva-seal);
}

#benefits-section .benefit-box__label::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 0.45rem auto 0;
  background: linear-gradient(90deg, transparent, var(--isarva-gold), transparent);
  transform: scaleX(0.55);
  transform-origin: center;
  transition: transform 0.28s ease;
}

#benefits-section .benefit-box:hover .benefit-box__label::after {
  transform: scaleX(1);
}

@media (hover: none) {
  #benefits-section .benefit-box:hover,
  #benefits-section .benefit-box:focus-within {
    transform: none;
  }
}

@media (max-width: 1199.98px) {
  #benefits-section .benefit-box__seal {
    width: 64px;
    height: 64px;
  }

  #benefits-section .benefit-box img,
  #benefits-section .benefit-box svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 575.98px) {
  #benefits-section .benefit-box {
    gap: 0.5rem;
    padding: 0.15rem 0.2rem 0.25rem !important;
  }

  #benefits-section .benefit-box__index {
    font-size: 0.64rem;
  }

  #benefits-section .benefit-box__seal {
    width: 56px;
    height: 56px;
    box-shadow:
      0 0 0 5px rgba(255, 255, 255, 0.92),
      0 6px 14px rgba(18, 48, 31, 0.1);
  }

  #benefits-section .benefit-box__seal::before {
    inset: -7px;
  }

  #benefits-section .benefit-box__label,
  #benefits-section .benefit-box p {
    font-size: 0.82rem !important;
    max-width: 9.5rem;
  }
}
